@Deprecated public class CannyEdgeDetector2 extends Object implements SinglebandImageProcessor<Float,FImage>
EdgeDirectionCoherenceVector
features. Use the
CannyEdgeDetector
instead.
This is an implementation of the canny edge detector that was found somewhere out there on the web with no attribution. If this is your code and you don't want it in OpenIMAJ, please let us know.
SinglebandImageProcessor.Processable<T,S extends Image<T,S>,I extends Image<?,I>>
Constructor and Description |
---|
CannyEdgeDetector2()
Deprecated.
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
display(float[] data)
Deprecated.
Assumes the input is a one-dimensional representation of an image.
|
protected void |
display(int[] data)
Deprecated.
Assumes the input is a one-dimensional representation of an image.
|
FImage |
getEdgeImage()
Deprecated.
|
int |
getHystThresh1()
Deprecated.
Get the first hysteresis threshold.
|
int |
getHystThresh2()
Deprecated.
Get the second hysteresis threshold.
|
int |
getKernelSize()
Deprecated.
Get the kernel size being used.
|
float[] |
getMagnitude()
Deprecated.
|
float[] |
getOrientation()
Deprecated.
|
int |
getThreshold()
Deprecated.
Get the threshold above which an edge pixel will be considered an edge.
|
boolean |
isImageReady()
Deprecated.
|
void |
processImage(FImage image)
Deprecated.
Process an image.
|
void |
setHystThresh1(int hystThresh1)
Deprecated.
Set the fist hysteresis threshold.
|
void |
setHystThresh2(int hystThresh2)
Deprecated.
Set the second hysteresis threshold.
|
void |
setKernelSize(int kernelSize)
Deprecated.
Set the kernel size to use.
|
void |
setSourceImage(FImage image)
Deprecated.
|
void |
setThreshold(int threshold)
Deprecated.
Get the threshold above which an edge pixel will be considered an edge.
|
public CannyEdgeDetector2()
public boolean isImageReady()
public void processImage(FImage image)
Image.internalAssign(Image)
.processImage
in interface ImageProcessor<FImage>
image
- The image to process in place.ImageProcessor.processImage(org.openimaj.image.Image)
protected void display(int[] data)
data
- A one-dimensional representation of an image.protected void display(float[] data)
data
- A one-dimensional representation of an image.public void setSourceImage(FImage image)
image
- public FImage getEdgeImage()
public float[] getMagnitude()
public float[] getOrientation()
public int getThreshold()
public void setThreshold(int threshold)
threshold
- the threshold above which an edge pixel will be considered an
edge.public int getHystThresh1()
public void setHystThresh1(int hystThresh1)
hystThresh1
- the threshold valuepublic int getHystThresh2()
public void setHystThresh2(int hystThresh2)
hystThresh2
- the threshold valuepublic int getKernelSize()
public void setKernelSize(int kernelSize)
kernelSize
- the size of the kernel to use for blurring.