Catalano.Imaging.Texture.BinaryPattern
Class UniformLocalBinaryPattern
- java.lang.Object
-
- Catalano.Imaging.Texture.BinaryPattern.UniformLocalBinaryPattern
-
- All Implemented Interfaces:
- IBinaryPattern
public class UniformLocalBinaryPattern extends java.lang.Object implements IBinaryPattern
Uniform local binary patterns (LBPu2) is a type of feature used for classification in computer vision. LBPu2 Encodes 256 LBP labels in 59 labels.
-
-
Constructor Summary
Constructors Constructor and Description UniformLocalBinaryPattern()Initialize a new instance of the UniformLocalBinaryPattern class.UniformLocalBinaryPattern(boolean nonUniform)Initialize a new instance of the UniformLocalBinaryPattern class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description ImageHistogramComputeFeatures(FastBitmap fastBitmap)Compute binary pattern.static ImageHistogramEncode(ImageHistogram hist)Encode a LBP 256 histogram in Uniform LBP.static ImageHistogramEncode(ImageHistogram hist, boolean nonUniform)Encode a LBP 256 histogram in Uniform LBP.booleanisNonUniform()Check if needs the non uniform label.voidsetNonUniform(boolean nonUniform)Set if needs the non uniform label.
-
-
-
Constructor Detail
-
UniformLocalBinaryPattern
public UniformLocalBinaryPattern()
Initialize a new instance of the UniformLocalBinaryPattern class.
-
UniformLocalBinaryPattern
public UniformLocalBinaryPattern(boolean nonUniform)
Initialize a new instance of the UniformLocalBinaryPattern class.- Parameters:
nonUniform- True if needs the non uniform label.
-
-
Method Detail
-
isNonUniform
public boolean isNonUniform()
Check if needs the non uniform label.- Returns:
- True if needs the non uniform label, otherwise return false.
-
setNonUniform
public void setNonUniform(boolean nonUniform)
Set if needs the non uniform label.- Parameters:
nonUniform- True if needs the non uniform label.
-
ComputeFeatures
public ImageHistogram ComputeFeatures(FastBitmap fastBitmap)
Description copied from interface:IBinaryPatternCompute binary pattern.- Specified by:
ComputeFeaturesin interfaceIBinaryPattern- Parameters:
fastBitmap- Image to be processed.- Returns:
- Binary pattern.
-
Encode
public static ImageHistogram Encode(ImageHistogram hist)
Encode a LBP 256 histogram in Uniform LBP.- Parameters:
hist- Image histogram.- Returns:
- LBPu2.
-
Encode
public static ImageHistogram Encode(ImageHistogram hist, boolean nonUniform)
Encode a LBP 256 histogram in Uniform LBP.- Parameters:
hist- Image histogram.nonUniform- True if needs the non uniform label.- Returns:
- LBPu2.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG