public class CannyEdge<T extends ImageSingleBand,D extends ImageSingleBand> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ImageFloat32 |
suppressed |
| Constructor and Description |
|---|
CannyEdge(BlurFilter<T> blur,
ImageGradient<T,D> gradient,
boolean saveTrace)
Specify internal algorithms and behavior.
|
| Modifier and Type | Method and Description |
|---|---|
List<EdgeContour> |
getContours() |
protected void |
performThresholding(float threshLow,
float threshHigh,
ImageUInt8 output) |
void |
process(T input,
float threshLow,
float threshHigh,
ImageUInt8 output)
Runs a canny edge detector on the input image given the provided thresholds.
|
protected ImageFloat32 suppressed
public CannyEdge(BlurFilter<T> blur, 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, ImageUInt8 output)
input - Input image. Not modified.threshLow - Lower threshold.threshHigh - Upper threshold.output - (Might be option) Output binary image. Edge pixels are marked with 1 and everything else 0.protected void performThresholding(float threshLow,
float threshHigh,
ImageUInt8 output)
public List<EdgeContour> getContours()
Copyright © 2013. All Rights Reserved.