Catalano.Imaging.Texture.BinaryPattern
Class LocalTernaryPattern
- java.lang.Object
-
- Catalano.Imaging.Texture.BinaryPattern.LocalTernaryPattern
-
- All Implemented Interfaces:
- IBinaryPattern
public class LocalTernaryPattern extends java.lang.Object implements IBinaryPattern
Local Ternary Pattern (LTP) is a type of feature used for classification in computer vision. References: Tan, Xiaoyang, and Bill Triggs. "Enhanced local texture feature sets for face recognition under difficult lighting conditions." Image Processing, IEEE Transactions on 19.6 (2010): 1635-1650.
-
-
Constructor Summary
Constructors Constructor and Description LocalTernaryPattern()Initialize a new instance of the LocalTernaryPattern class.LocalTernaryPattern(int threshold)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.ImageHistogramgetLowerHistogram()Get the Lower histogram.intgetThreshold()Get threshold value.ImageHistogramgetUpperHistogram()Get the Upper histogram.voidsetThreshold(int threshold)Set threshold value.
-
-
-
Constructor Detail
-
LocalTernaryPattern
public LocalTernaryPattern()
Initialize a new instance of the LocalTernaryPattern class.
-
LocalTernaryPattern
public LocalTernaryPattern(int threshold)
Initialize a new instance of the LocalTernaryPattern class.- Parameters:
threshold- Threshold.
-
-
Method Detail
-
getThreshold
public int getThreshold()
Get threshold value.- Returns:
- Threshold value.
-
setThreshold
public void setThreshold(int threshold)
Set threshold value.- Parameters:
threshold- Threshold 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