09-17-2007 09:21 AM
09-18-2007 10:05 AM
Hello AbangCorp,
In order to 'mask from file' in the NI Vision Assistant, you first place down an Image Mask step (Processing Functions>>Image>>Image Mask). Then, you choose Create from Image File and browse to the stored image file that you would like to use as your image mask. Finally, you choose which pixels to map (either those that are black in the image file or those that are not black in the image file). After creating the rest of your script in the NI Vision Assistant, you simply choose Tools>>Create LabVIEW VI to generate your LabVIEW code.
For more information, please refer to the NI Vision Assistant Help (available via Help>>Online Help). You can find more information inside the help in the following Help section: NI Vision Assistant Help>>Analyzing and Processing Images>>Image Mask>>Image Mask description and parameters.
An image mask is an image containing values of 1 and 0. When you overlay the image mask on your source image, the mask can hide or reveal sections of your source image. Pixels in the source image that correspond to zero-valued pixels in the image mask will be hidden and won't be subject to further image processing. Pixels in the source image that correspond to pixels in the image mask with a value of one will be revealed and will be subject to further image processing.
Please find the attached ImageMask.scr script file and the attached MaskFromFile80.vi LabVIEW VI to view an example of how to use the Image Mask step.
Best Regards,
Travis M.
09-19-2007 10:39 AM
09-19-2007 04:10 PM
01-27-2009 07:00 AM