11-08-2015 08:25 PM
I have a challenge in that I want to use a tool like IMAQ Convex Hull or IMAQ Morphology (with Close), however I only want to close cavities in my 2D image that meet certain criteria.
In this basic example I want to close the cavity with the green line, but I do not want to clsoe the 'corner' marked by the red line:
In their native form the IMAQ functions do not appear to support this sort of ability to discriminate different types of cavity, and would fill both of the exampels above.
Here's an example image from my project:
I really need to be able to close out the cavities in the core of the blob without really changing the general shape of the outer perimeter of the object.
It looks like I may have to develop a custom algorithm, which I am prepared to do, but I do like to avoid re-inventing the wheel in the event a standard solution already exists.
11-09-2015 11:48 AM
You will have to make a custom algorithm. Some of these previous threads might be helpful for you:
http://forums.ni.com/t5/Machine-Vision/Watershed-filtering/td-p/10942/page/3?view=by_date_ascending
http://forums.ni.com/t5/Machine-Vision/How-to-get-boundary-contour-points/m-p/578177
My first ideas about what might work:
This looks like a fun one. Good luck!
Kevin C.