02-10-2009 11:21 AM
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.
Solved! Go to Solution.
02-10-2009 11:59 AM
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?
02-10-2009 12:08 PM
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.
02-10-2009 12:10 PM
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.
02-10-2009 12:15 PM
02-10-2009 01:13 PM - edited 02-10-2009 01:14 PM