FLIR (point grey) MONO16 mode produce only 8bits image

Hi,
I use FLIR Blackfly BFLY-PGE-23S6C camera on Matlab2017b.
I open the camera on Mono16 mode. However, the image is limited to 8bit (256) values.
I used 2 methods to open and read an image:
The first is using videoinput:
vid = videoinput('gige', 1, 'Mono16');
src = getselectedsource(vid);
vid.FramesPerTrigger = 1;
img = getdata(vid);
im_16g_cropped=bitand(img,4095);
figure; imagesc(im_16g_cropped);
The second is using direct gigE:
camline=gigecamlist
g=gigecam(camline.IPAddress{1})
preview(g);
closePreview(g);
g.PixelFormat=g.AvailablePixelFormats{5}
g.AcquisitionFrameRateAuto='off'
g.AcquisitionFrameRate=5;
g.ExposureAuto='off'
g.ExposureTime=3e4
g.GainAuto='off'
g.Gain=29;
img=snapshot(g);
im_16g_cropped=bitand(img,4095);
figure; imagesc(im_16g_cropped);
Both methods produce the same result.
Anybodey has an idea?

Answers (0)

Products

Release

R2017b

Asked:

on 23 Apr 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!