Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

incompatible image type

Solved!
Go to solution

I'm getting an imcompatible image type when using Setup Pattern 2, Learn Pattern 2, and Match Pattern 2. I understand that this error is thrown when the bit depths of the image template and searchable image are different, but in my case, everybody is a 16bit image.

 

Any suggestions? Attached is an image of my setup. You can see from the probes that everybody is a 16bit image.

 

 

0 Kudos
Message 1 of 6
(4,862 Views)

Hi Candice,

 

Have you checked to make sure all the images are the same expected type (RGB vs Grayscale)?

 

At what point in the code does the error actually occur?

 

 

Jeff | LabVIEW Software Engineer
0 Kudos
Message 2 of 6
(4,860 Views)

Happens between Learn Pattern and Match Pattern.

 

Expected type? I created them all as Grayscale I16, except the large image that comes from AVI Read Frame as I16.  Just in case, as soon as the image comes out of AVI Read Frame, I cast it to Grayscale I16.

0 Kudos
Message 3 of 6
(4,855 Views)
Solution
Accepted by topic author Candice

Candice, please check in help that functions Setup Pattern 2, Learn Pattern 2, and Match Pattern 2 are compatible with 16 bit type. I geuss, they only for 8 bit (but not sure - I haven't vision right now for check)

 

Andrey. 

Message 4 of 6
(4,854 Views)
Yes, good call. How unfortunate. Thanks for your help.
0 Kudos
Message 5 of 6
(4,850 Views)
As a follow-up, there is a KB on this.
Message Edited by JeffL on 02-10-2009 01:14 PM
Jeff | LabVIEW Software Engineer
Message 6 of 6
(4,841 Views)