Home > Software engineering >  Detection of linear gap
Detection of linear gap

Time:09-16

Inquire of binarization processing after the gap below the line how to detect, just need to detect markers

CodePudding user response:

Sampling profile found after binarization, filter out unwanted outline, find the need to outline; The picture to see where the contour line is chipped out ~

CodePudding user response:

To derivation of contour, y '=dy/dx, if the derivative change is bigger, that is the gap, this is just a principle, apply to the straight line gap, according to your graphics, have a turn, have a circular arc, add some conditions, if both sides agree monotonicity, larger changes in the middle, is the gap, gap (not the same on both sides is turning, is not),
If use the second derivative, judgment may be more simple,
  • Related