Catalano.Imaging.Texture.BinaryPattern
Class LocalAdaptiveTernaryPattern
- java.lang.Object
-
- Catalano.Imaging.Texture.BinaryPattern.LocalAdaptiveTernaryPattern
-
- All Implemented Interfaces:
- IBinaryPattern
public class LocalAdaptiveTernaryPattern extends java.lang.Object implements IBinaryPattern
Local Adaptive Ternary Pattern (LATP) is a type of feature used for classification in computer vision. References: M. Akhloufi and A. Bendada, 2010. "Locally adaptive texture features for multispectral face recognition."
-
-
Constructor Summary
Constructors Constructor and Description LocalAdaptiveTernaryPattern()Initialize a new instance of the LocalTernaryPattern class.LocalAdaptiveTernaryPattern(double constant)Initialize a new instance of the LocalTernaryPattern class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ImageHistogramComputeFeatures(FastBitmap fastBitmap)Process the image.doublegetConstant()Get constant.ImageHistogramgetLowerHistogram()Get the Lower histogram.ImageHistogramgetUpperHistogram()Get the Upper histogram.voidsetConstant(double constant)Set constant.
-
-
-
Constructor Detail
-
LocalAdaptiveTernaryPattern
public LocalAdaptiveTernaryPattern()
Initialize a new instance of the LocalTernaryPattern class.
-
LocalAdaptiveTernaryPattern
public LocalAdaptiveTernaryPattern(double constant)
Initialize a new instance of the LocalTernaryPattern class.- Parameters:
constant- Threshold.
-
-
Method Detail
-
getConstant
public double getConstant()
Get constant.- Returns:
- Constant value.
-
setConstant
public void setConstant(double constant)
Set constant.- Parameters:
constant- Constant value.
-
getUpperHistogram
public ImageHistogram getUpperHistogram()
Get the Upper histogram.- Returns:
- Histogram.
-
getLowerHistogram
public ImageHistogram getLowerHistogram()
Get the Lower histogram.- Returns:
- Histogram.
-
ComputeFeatures
public ImageHistogram ComputeFeatures(FastBitmap fastBitmap)
Process the image.- Specified by:
ComputeFeaturesin interfaceIBinaryPattern- Parameters:
fastBitmap- Image to be processed.- Returns:
- Binary pattern.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG