public class BilateralFilterSeparable extends BilateralFilter
BilateralFilter.Parameters
colorNorm, colorScale, K, params, rgb, sigmaR2
Constructor and Description |
---|
BilateralFilterSeparable() |
BilateralFilterSeparable(BilateralFilter.Parameters params) |
BilateralFilterSeparable(double sigmaD,
double sigmaR) |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(ij.process.ImageProcessor target)
Dispatch work depending on actual (runtime) type of processor.
|
float[] |
filterPixel(ImageAccessor.Rgb I,
int u,
int v)
Calculates and returns the filter result for a single pixel
at the given position.
|
float |
filterPixel(ImageAccessor.Scalar I,
int u,
int v)
Calculates and returns the filter result for a single pixel
at the given position.
|
makeDomainKernel2D, makeRangeKernel, similarityGauss, similarityGauss
setOutOfBoundsStrategy
public BilateralFilterSeparable()
public BilateralFilterSeparable(double sigmaD, double sigmaR)
public BilateralFilterSeparable(BilateralFilter.Parameters params)
public void applyTo(ij.process.ImageProcessor target)
GenericFilter
applyTo
in class GenericFilter
target
- the image this filter is applied to (destructively)public float filterPixel(ImageAccessor.Scalar I, int u, int v)
GenericFilter
filterPixel
in class BilateralFilter
I
- the ImageAccessor.Scalar
representing the source (scalar-valued) imageu
- the horizontal pixel positionv
- the vertical pixel positionpublic float[] filterPixel(ImageAccessor.Rgb I, int u, int v)
GenericFilter
filterPixel
in class BilateralFilter
I
- the ImageAccessor.Rgb
representing the source (RGB) imageu
- the horizontal pixel positionv
- the vertical pixel positionCopyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)