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.
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.