TheImagingSource / Linux-tiscamera-Programming-Samples

Programming samples in Python and C++ for the tiscamera GStreamer modules.
71 stars 35 forks source link

raw image before demosaicing in DFM37UX178 #27

Open manuInWound opened 1 year ago

manuInWound commented 1 year ago

Hi Is possible to have a raw image before demosaicing process on the DFM37uX178?. I am using the RGBx64 and TIFF format but still need the real raw to improve my analysis on Multispectral imaging.

TIS-Stefan commented 1 year ago

You can use the tcamsrc instead of the tcambin and get the grgb16 (check with tcam-ctrl -c, which is the correct bayer pattern) format. The pipeline can look like this:

gst-launch-1.0 tcamsrc serial=42719953 format=rggb16,widht=1920,heigth=1080,framerate=30/1 ! appsink

In the appsink you will receive an image with one uint16 per pixel. (I used a different camera for testing, thus check the format!)

Stefan

TIS-Stefan commented 1 year ago

.. However, things will become more interesting, if you want to have both, raw data and tiff at the same point of time. Then you use a tee filter. I would have to test a suitable pipeline on my own for that task.

Stefan