Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

ROIToMask invalid image type

I have a Basler 102f Camera and acquire signals with 16 bit depth (effective depth is 12 bit).
When I try to use the IMAQ ROIToMask.vi I get the following error message:


"Error -1074396080 occurred at IMAQ ROIToMask
Invalid image type.

Possible reason(s):

IMAQ Vision: (Hex 0xBFF60450) Invalid image type."


Does anybody have a solution for this problem?

Dominik
0 Kudos
Message 1 of 3
(5,549 Views)
Hi groegler

The reason you are getting this error is that the ROItoMask vi only takes an 8 bit image as its input. If you are drawing the ROI onto the image I would cast your current image to a new 8 bit image for displaying and drawing. You will not see any difference as your computer can only display 8 bit greyscale. Then use this to create your mask with the ROItoMask vi. Then apply this to your original 16 bit image.

Hope this helps

Mike
Message 2 of 3
(5,546 Views)
It works perfect, thanks alot!
0 Kudos
Message 3 of 3
(5,530 Views)