public class BilateralFilter extends GenericFilter
| Modifier and Type | Class and Description |
|---|---|
static class |
BilateralFilter.Parameters |
| Modifier and Type | Field and Description |
|---|---|
protected VectorNorm |
colorNorm |
protected double |
colorScale |
protected int |
K |
protected BilateralFilter.Parameters |
params |
protected float[] |
rgb |
protected double |
sigmaR2 |
| Constructor and Description |
|---|
BilateralFilter() |
BilateralFilter(BilateralFilter.Parameters params) |
BilateralFilter(double sigmaD,
double sigmaR) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected float[][] |
makeDomainKernel2D(double sigma,
int K) |
protected float[] |
makeRangeKernel(double sigma,
int K) |
protected float |
similarityGauss(float[] a,
float[] b) |
protected float |
similarityGauss(float a,
float b) |
applyTo, setOutOfBoundsStrategyprotected final BilateralFilter.Parameters params
protected final int K
protected final float[] rgb
protected final double sigmaR2
protected final VectorNorm colorNorm
protected final double colorScale
public BilateralFilter()
public BilateralFilter(double sigmaD, double sigmaR)
public BilateralFilter(BilateralFilter.Parameters params)
public float filterPixel(ImageAccessor.Scalar I, int u, int v)
GenericFilterfilterPixel in class GenericFilterI - 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)
GenericFilterfilterPixel in class GenericFilterI - the ImageAccessor.Rgb representing the source (RGB) imageu - the horizontal pixel positionv - the vertical pixel positionprotected float similarityGauss(float a, float b)
protected float similarityGauss(float[] a, float[] b)
protected float[][] makeDomainKernel2D(double sigma, int K)
protected float[] makeRangeKernel(double sigma, int K)
Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)