LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image in compatible error

when i am trying to load images from an avi file or a camera i get an image incompatible error when i try to bring the loaded image into another function like a nth order filter or image to array. the only function that seems to work with the image is save to jpg. so i have to save it to the hard drive then open it again and that works without error.

is there any reason why i can't directly connect the grab frame to a filter why do i need to create the file on the hard drive and then read it to bridge the gap between grab and filter.

thanks
0 Kudos
Message 1 of 8
(4,054 Views)
Is it a timing error? i.e is the image not fully loaded when it attempts to filter it.
0 Kudos
Message 2 of 8
(4,041 Views)

hello,

which is exactly the error you are having. Could you post a simple example with the VIs that you use?

crisR

0 Kudos
Message 3 of 8
(4,036 Views)
the error i get is Error -1074396077 occurred in IMAQ Match Pattern 2 Incompatible image type Possible reason (s);
imaq vision (Hex 0xbff60453 Incompatible image type.

i have included a print screen of the portion of the code in error

thanks
0 Kudos
Message 4 of 8
(4,020 Views)

Hello,

In order for the pattern matching to operate correctly, the acquired image and the pattern template image must both have the same bit depth. For example, if you acquire 16-bit images but your pattern image is an 8-bit file, then LabVIEW will return the above error and will be unable to match the pattern to the image correctly.

In the following link you have more information about it. Look at Point 4.

http://digital.ni.com/public.nsf/websearch/F05924D50AD6472B86256F320075CDBF?OpenDocument

Maybe, this is the problem you are having. Check the bit depth bot your images acquired and the template. They must be the same.

crisR


0 Kudos
Message 5 of 8
(4,012 Views)

Thanks CrisR for your link!

 

Sorry to dig this thread out but i am having the same problem when using IMAQ Mask (after ROITomask). I tried to set the mask & the destination images to I16 but the same error occurs.

 

Does this function only deals with U8 ?

 

I don't post my VI but it is exactly the same as ROI_example with a I16 image in, and with the functions  ROItoMask, IMAQ Mask and Image to Array in order to export pixel values of the desired Region of Interest.

 

Thanks for the help

Christophe

Message Edited by christophe69000 on 07-24-2009 07:58 AM
0 Kudos
Message 6 of 8
(3,652 Views)

Hi,

 

Imaq Mask help notifies that Image Mask is an 8-bit image...So my question is answered!

 

Is The last remaining solution to convert my 16bit image to 8?

0 Kudos
Message 7 of 8
(3,646 Views)

Up this problem!

0 Kudos
Message 8 of 8
(3,632 Views)