|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpreprocessing.CannyDericheFilter
public class CannyDericheFilter
Class containing some static methods for Edge Detection, using median filter, Canny-Deriche filtering, double tresholding, hysteresis tresholding. These are meant to be implemented in another plugin, hence the basic functionality. Methods based on the plugins deriche_ and hysteresis_
Constructor Summary | |
---|---|
CannyDericheFilter()
|
Method Summary | |
---|---|
static double |
angle(float dx,
float dy)
angle |
static ij.process.ImageProcessor |
areaEdge(ij.process.ImageProcessor ip,
double radius,
float alpha,
float upper,
float lower)
Edge detection by subsequent application of a median filter, a Canny-Deriche filter double tresholding and hysteresis. |
static java.util.ArrayList<double[]> |
dericheCalc(ij.process.ImageProcessor ip,
float alphaD)
Static method returning an ArrayList of double[] containing the norm array(index 0) and the angle array(index 1). |
static ij.process.ImageProcessor |
getDeriche(ij.process.ImageProcessor ip,
float alpha)
Canny-Deriche filtering without previous median filter. |
static ij.process.ImageProcessor |
getDeriche(ij.process.ImageProcessor ip,
float alpha,
double radius)
Canny-Deriche filtering with previous median filter. |
static ij.process.FloatProcessor |
getDericheAngle(ij.process.ImageProcessor ip,
float alpha)
Canny-Deriche filtering without previous median filter. |
static ij.process.FloatProcessor |
getDericheAngle(ij.process.ImageProcessor ip,
float alpha,
double radius)
Canny-Deriche filtering with previous median filter. |
static ij.process.FloatProcessor |
getDericheNorm(ij.process.ImageProcessor ip,
float alpha)
Canny-Deriche filtering without previous median filter. |
static ij.process.FloatProcessor |
getDericheNorm(ij.process.ImageProcessor ip,
float alpha,
double radius)
Canny-Deriche filtering with previous median filter. |
static ij.process.ImageProcessor |
hyst(ij.process.ImageProcessor ima)
Hysteresis thresholding |
static double |
modul(float dx,
float dy)
modul |
static ij.process.ImageProcessor |
nonMaximalSuppression(ij.process.ImageProcessor grad,
ij.process.ImageProcessor ang)
Suppression of non local-maxima |
static ij.process.ImageProcessor |
trin(ij.process.ImageProcessor ima,
float T1,
float T2)
Double thresholding |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CannyDericheFilter()
Method Detail |
---|
public static ij.process.ImageProcessor areaEdge(ij.process.ImageProcessor ip, double radius, float alpha, float upper, float lower)
ip
- ImageProcessorradius
- radius for the median filteralpha
- alpha setting for Canny-Deriche filterupper
- Upper treshold for double tresholdinglower
- lower treshold for double tresholding
public static ij.process.ImageProcessor getDeriche(ij.process.ImageProcessor ip, float alpha)
ip
- ImageProcessoralpha
- alpha value for Deriche filter
public static ij.process.ImageProcessor getDeriche(ij.process.ImageProcessor ip, float alpha, double radius)
ip
- ImageProcessoralpha
- alpha value for Deriche filterradius
- radius for the median filter
public static ij.process.FloatProcessor getDericheAngle(ij.process.ImageProcessor ip, float alpha)
ip
- ImageProcessoralpha
- alpha value for Deriche filter
public static ij.process.FloatProcessor getDericheAngle(ij.process.ImageProcessor ip, float alpha, double radius)
ip
- ImageProcessoralpha
- alpha value for Deriche filterradius
- radius for the median filter
public static ij.process.FloatProcessor getDericheNorm(ij.process.ImageProcessor ip, float alpha)
ip
- ImageProcessoralpha
- alpha value for Deriche filter
public static ij.process.FloatProcessor getDericheNorm(ij.process.ImageProcessor ip, float alpha, double radius)
ip
- ImageProcessoralpha
- alpha value for Deriche filterradius
- radius for the median filter
public static ij.process.ImageProcessor trin(ij.process.ImageProcessor ima, float T1, float T2)
ima
- original imageT1
- high thresholdT2
- low threshold
public static ij.process.ImageProcessor hyst(ij.process.ImageProcessor ima)
ima
- original image
public static java.util.ArrayList<double[]> dericheCalc(ij.process.ImageProcessor ip, float alphaD)
public static ij.process.ImageProcessor nonMaximalSuppression(ij.process.ImageProcessor grad, ij.process.ImageProcessor ang)
grad
- the norm gradient imageang
- the angle gradient image
public static double modul(float dx, float dy)
dx
- derivative in xdy
- derivative in y
public static double angle(float dx, float dy)
dx
- derivative in xdy
- derivative in y
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |