public class Canny extends AbstractDescriptor
Descriptor.Supports
pcs
DOES_ALL
Constructor and Description |
---|
Canny()
Constructs a new detector with default parameters.
|
Modifier and Type | Method and Description |
---|---|
float |
getGaussianKernelRadius()
The radius of the Gaussian convolution kernel used to smooth the source
image prior to gradient calculation.
|
int |
getGaussianKernelWidth()
The number of pixels across which the Gaussian kernel is applied.
|
float |
getHighThreshold()
Return the high threshold for hysteresis.
|
float |
getLowThreshold()
Get the low threshold for hysteresis.
|
boolean |
isContrastNormalized()
Whether the luminance data extracted from the source image is normalized
by linearizing its histogram prior to edge extraction.
|
void |
run(ij.process.ImageProcessor ip)
Starts the canny edge detection.
|
void |
sContrastNormalized(boolean contrastNormalized)
Sets whether the contrast should be normalized
|
void |
setGaussianKernelRadius(float gaussianKernelRadius)
Sets the radius of the Gaussian convolution kernel used to smooth the
source image prior to gradient calculation.
|
void |
setGaussianKernelWidth(int gaussianKernelWidth)
The number of pixels across which the Gaussian kernel is applied.
|
void |
setHighThreshold(float threshold)
Sets the high threshold for hysteresis.
|
void |
setLowThreshold(float threshold)
Sets the low threshold for hysteresis.
|
void |
setProperties(LibProperties properties) |
EnumSet<Descriptor.Supports> |
supports()
Defines the capability of the algorithm.
|
addPropertyChangeListener, endProgress, startProgress
public void setProperties(LibProperties properties) throws IOException
setProperties
in class AbstractDescriptor
IOException
public EnumSet<Descriptor.Supports> supports()
PlugInFilter
,
supports()
public void run(ij.process.ImageProcessor ip)
ip
- ImageProcessor of the source imagepublic float getLowThreshold()
public void setLowThreshold(float threshold)
threshold
- a low hysteresis thresholdpublic float getHighThreshold()
public void setHighThreshold(float threshold)
threshold
- a high hysteresis thresholdpublic int getGaussianKernelWidth()
public void setGaussianKernelWidth(int gaussianKernelWidth)
gaussianKernelWidth
- a radius for the convolution operation in
pixels, at least 2.public float getGaussianKernelRadius()
public void setGaussianKernelRadius(float gaussianKernelRadius)
public boolean isContrastNormalized()
public void sContrastNormalized(boolean contrastNormalized)
contrastNormalized
- true if the contrast should be normalized,
false otherwiseCopyright © 2013. All Rights Reserved.