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

5 ビュー (過去 30 日間)
asaf shahmoon
asaf shahmoon 2019 年 4 月 23 日
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?

回答 (0 件)

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by