Catalano.Imaging.Filters.Photometric
Class SelfQuocientImage
- java.lang.Object
-
- Catalano.Imaging.Filters.Photometric.SelfQuocientImage
-
- All Implemented Interfaces:
- IPhotometricFilter, IApplyInPlace
public class SelfQuocientImage extends java.lang.Object implements IPhotometricFilter
Self Quocient Image.
-
-
Constructor Summary
Constructors Constructor and Description SelfQuocientImage()Initializes a new instance of the SelfQuocientImage class.SelfQuocientImage(int size)Initializes a new instance of the SelfQuocientImage class.SelfQuocientImage(int size, double sigma)Initializes a new instance of the SelfQuocientImage class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.doublegetSigma()Get bandwidth of the gaussian filter.intgetSize()Get the size of the kernel.double[][]Process(double[][] image, boolean normalize)Process the filter.voidsetSigma(double sigma)Set bandwidth of the gaussian filter.voidsetSize(int size)Set the size of the kernel.
-
-
-
Constructor Detail
-
SelfQuocientImage
public SelfQuocientImage()
Initializes a new instance of the SelfQuocientImage class.
-
SelfQuocientImage
public SelfQuocientImage(int size)
Initializes a new instance of the SelfQuocientImage class.- Parameters:
size- Size of the kernel.
-
SelfQuocientImage
public SelfQuocientImage(int size, double sigma)Initializes a new instance of the SelfQuocientImage class.- Parameters:
size- Size of the kernel.sigma- Sigma value.
-
-
Method Detail
-
getSigma
public double getSigma()
Get bandwidth of the gaussian filter.- Returns:
- Bandwidth of the gaussian filter.
-
setSigma
public void setSigma(double sigma)
Set bandwidth of the gaussian filter.- Parameters:
sigma- Sigma value.
-
getSize
public int getSize()
Get the size of the kernel.- Returns:
- Size of the kernel.
-
setSize
public void setSize(int size)
Set the size of the kernel.- Parameters:
size- Size of the kernel.
-
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 filter.- Parameters:
image- Image as matrix.normalize- Normalize the image.- Returns:
- Result of the filter.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG