Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Making a mask file

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(3,896 Views)

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

0 Kudos
Message 2 of 5
(3,888 Views)

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

0 Kudos
Message 3 of 5
(3,876 Views)
Solution
Accepted by Jane.Yu

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!

 

paint.png

0 Kudos
Message 4 of 5
(3,866 Views)
Spoiler

Hi Drew,

Thank you very much for your help. It does help. Cheers, Jane

 

0 Kudos
Message 5 of 5
(3,859 Views)