public static class AnisotropicDiffusion.WideRegionFunction extends Object implements AnisotropicDiffusion.ConductionCoefficientFunction
g(∇I) = 1 / ( 1 + (||∇I/κ||²) )
| Constructor and Description |
|---|
WideRegionFunction(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 WideRegionFunction(float kappa)
kappa - kappapublic float apply(float val, int x, int y)
AnisotropicDiffusion.ConductionCoefficientFunctionapply in interface AnisotropicDiffusion.ConductionCoefficientFunctionval - the gradientx - the x-position in the imagey - the y-position in the image