Catalano.Imaging.Filters
Class GaborFilter
- java.lang.Object
-
- Catalano.Imaging.Filters.GaborFilter
-
- All Implemented Interfaces:
- IApplyInPlace
public class GaborFilter extends java.lang.Object implements IApplyInPlace
Gabor Filter.In image processing, a Gabor filter, named after Dennis Gabor, is a linear filter used for edge detection. Frequency and orientation representations of Gabor filters are similar to those of the human visual system, and they have been found to be particularly appropriate for texture representation and discrimination. In the spatial domain, a 2D Gabor filter is a Gaussian kernel function modulated by a sinusoidal plane wave. - See Also:
http://en.wikipedia.org/wiki/Gabor_filter
-
-
Constructor Summary
Constructors Constructor and Description GaborFilter()Initializes a new instance of the GaborFilterFinal class.GaborFilter(double wavelength)Initializes a new instance of the GaborFilterFinal class.GaborFilter(double wavelength, double orientation)Initializes a new instance of the GaborFilterFinal class.GaborFilter(double wavelength, double orientation, double phaseOffset)Initializes a new instance of the GaborFilterFinal class.GaborFilter(double wavelength, double orientation, double phaseOffset, double gaussianVar)Initializes a new instance of the GaborFilterFinal class.GaborFilter(double wavelength, double orientation, double phaseOffset, double gaussianVar, double aspectRatio)Initializes a new instance of the GaborFilterFinal class.GaborFilter(double wavelength, double orientation, double phaseOffset, double gaussianVar, double aspectRatio, Gabor.Config config)Initializes a new instance of the GaborFilterFinal class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.doublegetAspectRatio()Get Aspect ratio (Gamma).Gabor.ConfiggetConfig()Get Gabor function configuration.doublegetGaussianVar()Get Gaussian variance (Sigma).doublegetOrientation()Get Orientation (Theta).doublegetPhaseOffset()Get Phase offset (Psi).intgetSize()Get size of Gabor kernel.doublegetWavelength()Get Wavelength (Lambda).booleanisSigned()Verify if the image is signed.voidsetAspectRatio(double gamma)Set Aspect ratio (Gamma).voidsetConfig(Gabor.Config config)Set Gabor function configuration.voidsetGaussianVar(double sigma)Set Gaussian variance (Sigma).voidsetOrientation(double theta)Set Orientation (Theta).voidsetPhaseOffset(double psi)Set Phase offset (Psi).voidsetSigned(boolean signed)Set signed image.voidsetSize(int size)Set size of Gabor kernel.voidsetWavelength(double lambda)Set Wavelength (Lambda).
-
-
-
Constructor Detail
-
GaborFilter
public GaborFilter()
Initializes a new instance of the GaborFilterFinal class.
-
GaborFilter
public GaborFilter(double wavelength)
Initializes a new instance of the GaborFilterFinal class.- Parameters:
wavelength- Wavelength.
-
GaborFilter
public GaborFilter(double wavelength, double orientation)Initializes a new instance of the GaborFilterFinal class.- Parameters:
wavelength- Wavelength.orientation- Orientation.
-
GaborFilter
public GaborFilter(double wavelength, double orientation, double phaseOffset)Initializes a new instance of the GaborFilterFinal class.- Parameters:
wavelength- Wavelength.orientation- Orientation.phaseOffset- Phase offset.
-
GaborFilter
public GaborFilter(double wavelength, double orientation, double phaseOffset, double gaussianVar)Initializes a new instance of the GaborFilterFinal class.- Parameters:
wavelength- Wavelength.orientation- Orientation.phaseOffset- Phase offset.gaussianVar- Gaussian variance.
-
GaborFilter
public GaborFilter(double wavelength, double orientation, double phaseOffset, double gaussianVar, double aspectRatio)Initializes a new instance of the GaborFilterFinal class.- Parameters:
wavelength- Wavelength.orientation- Orientation.phaseOffset- Phase offset.gaussianVar- Gaussian variance.aspectRatio- Aspect ratio.
-
GaborFilter
public GaborFilter(double wavelength, double orientation, double phaseOffset, double gaussianVar, double aspectRatio, Gabor.Config config)Initializes a new instance of the GaborFilterFinal class.- Parameters:
wavelength- Wavelength.orientation- Orientation.phaseOffset- Phase offset.gaussianVar- Gaussian variance.aspectRatio- Aspect ratio.config- Gabor configuration.
-
-
Method Detail
-
getSize
public int getSize()
Get size of Gabor kernel.- Returns:
- Size.
-
setSize
public void setSize(int size)
Set size of Gabor kernel.- Parameters:
size- Size.
-
getWavelength
public double getWavelength()
Get Wavelength (Lambda).- Returns:
- Lambda value.
-
setWavelength
public void setWavelength(double lambda)
Set Wavelength (Lambda).- Parameters:
lambda- Lambda value.
-
getOrientation
public double getOrientation()
Get Orientation (Theta).- Returns:
- Theta value.
-
setOrientation
public void setOrientation(double theta)
Set Orientation (Theta).- Parameters:
theta- Theta value.
-
getPhaseOffset
public double getPhaseOffset()
Get Phase offset (Psi).- Returns:
- Phi value.
-
setPhaseOffset
public void setPhaseOffset(double psi)
Set Phase offset (Psi).- Parameters:
phi-
-
getGaussianVar
public double getGaussianVar()
Get Gaussian variance (Sigma).- Returns:
- Sigma value.
-
setGaussianVar
public void setGaussianVar(double sigma)
Set Gaussian variance (Sigma).- Parameters:
sigma- Sigma value.
-
getAspectRatio
public double getAspectRatio()
Get Aspect ratio (Gamma).- Returns:
- gamma.
-
setAspectRatio
public void setAspectRatio(double gamma)
Set Aspect ratio (Gamma).- Parameters:
gamma- Gamma.
-
getConfig
public Gabor.Config getConfig()
Get Gabor function configuration.- Returns:
- Configuration.
-
setConfig
public void setConfig(Gabor.Config config)
Set Gabor function configuration.- Parameters:
config- Configuration.
-
isSigned
public boolean isSigned()
Verify if the image is signed.- Returns:
- True if the image is signed, otherwise false.
-
setSigned
public void setSigned(boolean signed)
Set signed image. If true, image will be converted to RGB.- Parameters:
signed- True for signed image, false for grayscale image.
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG