public class CannyEdge<T extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected HysteresisEdgeTraceMark |
hysteresisMark |
protected HysteresisEdgeTracePoints |
hysteresisPts |
protected boofcv.struct.image.GrayF32 |
suppressed |
| Constructor and Description |
|---|
CannyEdge(boofcv.abst.filter.blur.BlurFilter<T> blur,
boofcv.abst.filter.derivative.ImageGradient<T,D> gradient,
boolean saveTrace)
Specify internal algorithms and behavior.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<EdgeContour> |
getContours() |
protected void |
performThresholding(float threshLow,
float threshHigh,
boofcv.struct.image.GrayU8 output) |
void |
process(T input,
float threshLow,
float threshHigh,
boofcv.struct.image.GrayU8 output)
Runs a canny edge detector on the input image given the provided thresholds.
|
protected boofcv.struct.image.GrayF32 suppressed
protected HysteresisEdgeTracePoints hysteresisPts
protected HysteresisEdgeTraceMark hysteresisMark
public CannyEdge(boofcv.abst.filter.blur.BlurFilter<T> blur, boofcv.abst.filter.derivative.ImageGradient<T,D> gradient, boolean saveTrace)
blur - Initial blur applied to image.gradient - Computes the image gradient.saveTrace - Should it save a list of points that compose the objects contour/trace?public void process(T input, float threshLow, float threshHigh, boofcv.struct.image.GrayU8 output)
Runs a canny edge detector on the input image given the provided thresholds. If configured to save a list of trace points then the output image is optional.
NOTE: Input and output can be the same instance, if the image type allows it.
input - Input image. Not modified.threshLow - Lower threshold. ≥ 0.threshHigh - Upper threshold. ≥ 0.output - (Might be option) Output binary image. Edge pixels are marked with 1 and everything else 0.protected void performThresholding(float threshLow,
float threshHigh,
boofcv.struct.image.GrayU8 output)
public java.util.List<EdgeContour> getContours()