Catalano.Imaging.Filters.Photometric
Class WeberFaces
- java.lang.Object
-
- Catalano.Imaging.Filters.Photometric.WeberFaces
-
- All Implemented Interfaces:
- IPhotometricFilter, IApplyInPlace
public class WeberFaces extends java.lang.Object implements IPhotometricFilter
Weber faces.
-
-
Constructor Summary
Constructors Constructor and Description WeberFaces()Initializes a new instance of the WeberFaces class.WeberFaces(double sigma, double alpha, int size)Initializes a new instance of the WeberFaces class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.doublegetAlpha()Get parameter balancing the range of the input values of the atan function.doublegetSigma()Get standard deviation of the Gaussian filter.intgetSize()Get the size of the neighborhood.double[][]Process(double[][] image, boolean normalize)Process the weberface filter.voidsetAlpha(double alpha)Set parameter balancing the range of the input values of the atan function.voidsetSigma(double sigma)Set standard deviation of the Gaussian filter.voidsetSize(int size)Set the size of the neighborhood.
-
-
-
Constructor Detail
-
WeberFaces
public WeberFaces()
Initializes a new instance of the WeberFaces class.
-
WeberFaces
public WeberFaces(double sigma, double alpha, int size)Initializes a new instance of the WeberFaces class.- Parameters:
sigma- Smoothing value.alpha- Parameter balancing.size- Size of the neighborhood.
-
-
Method Detail
-
getSigma
public double getSigma()
Get standard deviation of the Gaussian filter.- Returns:
- sigma value.
-
setSigma
public void setSigma(double sigma)
Set standard deviation of the Gaussian filter.- Parameters:
sigma- Sigma value.
-
getAlpha
public double getAlpha()
Get parameter balancing the range of the input values of the atan function.- Returns:
- Parameter balancing.
-
setAlpha
public void setAlpha(double alpha)
Set parameter balancing the range of the input values of the atan function.- Parameters:
alpha- Parameter balancing.
-
getSize
public int getSize()
Get the size of the neighborhood.- Returns:
- Size of the neighborhood.
-
setSize
public void setSize(int size)
Set the size of the neighborhood.- Parameters:
size- Size of the neighborhood.
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIPhotometricFilter- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
Process
public double[][] Process(double[][] image, boolean normalize)Process the weberface filter.- Parameters:
image- Image as matrix.normalize- Normalization.- Returns:
- Result of the filter.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG