public static class AnisotropicDiffusion.HighConstrastEdgeFunction extends Object implements AnisotropicDiffusion.ConductionCoefficientFunction
g(∇I) = exp( - (||∇I/κ||²) )
Constructor and Description |
---|
HighConstrastEdgeFunction(float kappa)
Construct with the given kappa value
|
Modifier and Type | Method and Description |
---|---|
float |
apply(float val,
int x,
int y)
Compute the conduction coefficient given gradient and position.
|
public HighConstrastEdgeFunction(float kappa)
kappa
- kappapublic float apply(float val, int x, int y)
AnisotropicDiffusion.ConductionCoefficientFunction
apply
in interface AnisotropicDiffusion.ConductionCoefficientFunction
val
- the gradientx
- the x-position in the imagey
- the y-position in the image