11-13-2011 05:25 PM
I'd like to know how to make a new mask file for image processing. The old mask file is a U8 BMP file. We need to update our mask file from 24 cells to 36 cells. I am new to the vision programming. I hope to get some ideas from any of you. Does the image file need to be converted from a CAD file? Or Are there any special requirements on this file? Any reply will be appreciated. Thanks a lot in advance.
Solved! Go to Solution.
11-14-2011 09:19 AM
Hi Jane,
Even though the help file for IMAQ Mask VI specifies that the mask file needs to be 8-bit, I have successfully mapped an image with the attached 32-bit file that I created in Paint. You do not need to convert the image from a CAD file. As long as you have the pixels you want to mask out set to zero (i.e., black), it will mask out those parts of the image once you apply the mask. You can find an example of this process in Help -> Find Examples... -> Toolkits and Modules -> Vision -> Functions -> Mask Example.vi
11-14-2011 09:24 PM
Hi Drew, thanks for your reply. I need to make a mask file to overlay on the image taken by the camera, and then do some image processing. The image mask should have the same size with the image taken by the camera, so in a real world, how can I draw that mask,how to define the dimension? In Paint, can define the length or pixels of the picture?
Regards,
Jane
11-15-2011 11:20 AM
Hi Jane,
In Paint you are able to define the size of the picture in pixels by going to the Properties menu. I've attached a screenshot of how you can access this in Windows 7. Hope this helps!
11-15-2011 03:49 PM
Hi Drew,
Thank you very much for your help. It does help. Cheers, Jane