boofcv.alg.feature.detect.edge
Class HysteresisEdgeTracePoints
- java.lang.Object
-
- boofcv.alg.feature.detect.edge.HysteresisEdgeTracePoints
-
public class HysteresisEdgeTracePoints extends java.lang.ObjectGiven the output from edge non-maximum suppression, perform hysteresis threshold along the edge and constructs a list of pixels belonging to each contour. Points are first connected in direction tangential to the edge's direction, if no matches are found then a match is searched for using an 8-connect rule. The direction image must be the 4-direction type. If multiple points in the local neighborhood can be added to edge then a new edge segment is created.
-
-
Field Summary
Fields Modifier and Type Field and Description static floatMARK_TRAVERSED
-
Constructor Summary
Constructors Constructor and Description HysteresisEdgeTracePoints()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<EdgeContour>getContours()Returns the found contours.voidprocess(GrayF32 intensity, GrayS8 direction, float lower, float upper)Performs hysteresis thresholding using the provided lower and upper thresholds.
-
-
-
Field Detail
-
MARK_TRAVERSED
public static final float MARK_TRAVERSED
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public void process(GrayF32 intensity, GrayS8 direction, float lower, float upper)
Performs hysteresis thresholding using the provided lower and upper thresholds.- Parameters:
intensity- Intensity image after edge non-maximum suppression has been applied. Modified.direction- 4-direction image. Not modified.lower- Lower threshold.upper- Upper threshold.
-
getContours
public java.util.List<EdgeContour> getContours()
Returns the found contours. Returned data structures are subject to modification next time process is called.- Returns:
- List of found contours.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG