Showing results for 
Search instead for 
Did you mean: 

Remove one feature, keep another, Vision Assistant Filters

Go to solution

I need help configuring the correct filters for image processing in NI Vision Assistant to create a vi in LabVIEW.


Goal: Fill in the large 0 valued blob on the boarder of the circle (orange rectangle on Picture11.png). Keep the 0 valued circle (blue rectangle on To create an image like Picture1.png. Original image - Picture3.png


Blue rectangle feature is not always in the same location, but it is always separate from the orange rectangle feature. The orange rectangle feature is always in that quadrant of the circle but varies in size.


Unfortunately, I do not have more test images at this time. I have managed to filled in the entire circle with 1 value pixels (using convex hull) but am not able to selectively keep the circular 0 valued pixels as 0 value. Any suggestions are appreciated as I am using Vision Assistant for the first time.


NI Vision Assistant, LabVIEW 2021 SP1 64-bit.

Download All
0 Kudos
Message 1 of 3
Accepted by topic author CatDoe

I had good results by first isolating the small hole to keep with an area range, then doing a convex hull on the original image, then combining the convex hull with the hole to keep with an exclusive OR.

In between, some smoothenings using an Open Image operation also improve the final result.






Download All
Message 2 of 3

Thank you! I was able to adapt these to fit my needs! I was on the right track but did not know how to save and combine images! That made everything much easier!

0 Kudos
Message 3 of 3