Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Having problems with LabVIEW VI created fromscript build in Imaq Vision Builder

I created a LabVIEW VI from a script I developed in IMAQ Vision Builder. I'm rather new to LabVIEW and am having some problems with the VI that Vision Builder created, it doesn't appear that all of the attributes for the VI's were carried over from the Vision Builder script to LabVIEW.

One of the elements of the Vision Builder script was Basic Morphology-open objects. The structuring element was 3x3, however, I removed each of the four corner cells from the grid. It appears that this information doesn't get passed onto LabVIEW when the VI is created. How do I manually reconstruct this in LabView? There are three boxes attached to the structuring element wire off the Morphology icon. A
re the two above each other the element size (ie 3x3) if so what is the third box for? And how do I tell the program I want to remove the four corner cells?

Also, there is a true and false box for the pixel frame for square or hexagon, where square is the default. Is the default always true (it was assigned false when the VI was created)? For other T/F statements I have this problem also, such as connectivity being 4 or 8 (8 default) and low pass/ high pass (low pass default). I chose all of the default values but the VI shows some as T and some F. Is the default value always true, or does this vary, and if so how do I find out with one is which?

Thanks for your help in advance.
Mark
0 Kudos
Message 1 of 2
(3,047 Views)
First, I would like to recommend that you use the Context Help when working with new functions in LabVIEW. You can view the context help by pressing CTRL+H and a separate help window will appear. This is where you can find out what teh default values for certain functions are.

As for the structuring element, that is a 2D array of values. If you expand the array, you should see a 3x3 array of 1s and 0s where the 1 indicates if that element is turned on. In your case you should see the following array:

0 1 0
1 1 1
0 1 0

Try creating another VI from a script which has a different structuring element to see how they change. Hope this helps.

Jack Arnold
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,047 Views)