10-13-2009 02:07 PM
Hi Folks -
In Vision Assistant, there is an option on the Watershed Segmentation Setup tab to display 'Image Source with Separation Overlay,' yet the code behind this particualr step is not extracted to the script. I have tried some masking procedures in combination with edge detection and custom color tabling that have been successful in allowing me to overlay the watershed lines on top of the original image. But I would like to know what code is used by NI here (and why it is not exposed to the script).
Thanks,
Don
10-14-2009 11:34 AM
Hi Don,
I'm not sure exactly what you're asking here. Do you want to see the code underneath? If you go to Tools»Create LabVIEW VI you can see your Vision Assistant script in all its LabVIEW glory. Alternatively, there's C and .NET.
We do have a watershedding VI in LabVIEW as well.
10-14-2009 03:05 PM
Hi Jeff -
Run Vision Assistant (I am working still with 8.5, soon to upgrade to 9.0 64-bit).
Open the pills.jp2 image in the Vision\examples\images directory.
Perform Threshold step followed by Danielson Distance Transform step. Then select to do the Watershed Transform. Now refer to my image in my prior post. Look at the middle left of the page and you will see an option to select 'Image Source with Separation Overlay'. You can also toggle with the other option which is just to display the transform. Now with the 'Image Source with Separation Overlay' option, and say OK. Does the watershed transform step now provide for this overlay option in the generated script? Select to create the code.
Now open the new VI up that you created. Again, does the watershed transform step now provide for this overlay option?
So what I am asking is this: Since there is this option available in Vision Assistant, is there a way to create code in which the watershed transform step is executed WITH THE 'Image Source with Separation Overlay'?
I was able to create my own code using Roberts edge detection ANDED with original image to get where I needed but I wanted to see how Vision was doing this to see if there is a more expedient solution.
See: http://forums.ni.com/ni/board/message?board.id=200&message.id=23303&query.id=108671#M23303
for my solution.
Thanks for your help.
Don
10-15-2009 02:51 PM
10-15-2009 03:23 PM
10-16-2009 02:59 AM