Acquired IR image using videoinput seems to be wrong

1 回表示 (過去 30 日間)
Ann-Katrin Frank
Ann-Katrin Frank 2019 年 5 月 29 日
コメント済み: Walter Roberson 2019 年 5 月 29 日
I want to retrieve an image from an thermal camera (Optris PI400). This fails, see the attached picture.
imaqreset
device = imaqhwinfo('winvideo', 2);
vidobj = videoinput('winvideo', 2);
img = getsnapshot(vidobj);
figure
imagesc(img)
For device I get this:
MatlabProblem2.PNG
This is the picture I get:
MatlabProblem.PNG
Does anybody know, what might be the problem?
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 5 月 29 日
You are displaying a YUY2 image as if it were RGB.
If it were a normal YUY2 image then I would suggest https://www.mathworks.com/help/imaq/returnedcolorspace.html but with it being IR, you probably need to do some other kind of processing of the panes, such as displaying them separately.

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by