03-07-2012 09:38 AM
I am attempting to process color picture of pellet. I want to exclude any particle that touches the edges of the color images. I created mask from original image and used this mask on the original color image to retain only the color particles that don't touch the boundary. The error occured when I ran the IMAQ Mask. The error message is “Error -1074396077 (IMAQ Vision: Incompatible image type)”. How can I fix it ?
I have picture and program as attached.
03-07-2012 09:57 AM
Hi
You get this error message when you pass an invalid image type to a function.
here you must pass an RGB mask . Use the IMAQ Cast Image function to do this
Hope this help
Regards
03-08-2012 07:29 AM
Dear toto26
I can't find IMAQ Cast Image function. Pls. instruct more details
Thanks and regards,
03-12-2012 08:49 AM
Hi XuanThuy,
The IMAQ Cast function is part of the Vision Development Module (VDM), under the Image Management Palette, as indicated by this document: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_cast_image/. If you can't locate it and you indeed have the VDM, there may be an issue with the installation of this module. A similar issue has been encountered and resolved in this forum post: http://forums.ni.com/t5/Machine-Vision/can-t-find-IMAQ-cast-image-vi/td-p/340157. What version of the vision software are you using?
03-12-2012 09:30 AM
Dear Joseph-S,
I will find and try it. I use Labview 2011.
Thanks,
03-21-2012 09:38 AM
Dear Joseph-S and toto26,
I tried use IMAQ Cast but IMAQ Cast can't convert U8 image mask to RGB mask. I have program as attached. May you help me ?
Best regards,
10-17-2012 01:46 PM
Hi were you able to solve your problem. I am using LV 2010, Could you provided your color sortor vi code in 2010? I am having same error in IMAQ mask. I have full development module running on my computer. Thanks,