03-26-2018 07:35 AM
Hello,
I have pattern of cracks after image processing (image below). It's possible to graphically connect the ends of cracks?
I have some idea using for that Imaq Draw or Imaq fit line + rake or Imaq caliper tool. Ofc need ROI but what next? Maybe somebody have advice where to begin or exapmle?
Best regards
N
03-26-2018 06:43 PM
You can do that task with morphology operation (closing) and elongated morphology structure element
03-27-2018 12:26 AM - edited 03-27-2018 12:26 AM
Thank you for reply, but cracks will merge after closing operation. My task is
03-27-2018 11:07 AM
If you threshold the image, you can treat each crack as an individual particle and use the IMAQ Particle Analysis Report to get the bounding rectangle of each crack and possibly connect corners of the bounding rectangles in some intelligent way.
You could also try some sort of algorithm that does a series of edge detections in one direction and connects the first edges that are found.
Each method that I could think of would have some drawbacks but I don't think there is a silver bullet function.
03-27-2018 12:43 PM
You might want to approach the cracks as texture object.
Seems from the picture you have sent that you are trying to segment the whole area with cracks.
I did in the past algorithm that was finding pileup dislocation (similar to cracks) in semiconductors.
You divide the area to smaller regions and do texture analysis on every region.
Then you could use classification to classify regions with cracks vs regions without cracks.
The cracks that you show in the image have particular texture.