@Reference(type=Article, author={"Ojala, T.","Pietikainen, M.","Harwood, D."}, title="A Comparative Study of Texture Measures with Classification Based on Feature Distributions", year="1996", journal="Pattern Recognition", pages={"51","59"}, month="January", number="1", volume="29") public class BasicLocalBinaryPattern extends Object implements ImageAnalyser<FImage>
| Modifier and Type | Field and Description |
|---|---|
protected int[][] |
pattern |
| Constructor and Description |
|---|
BasicLocalBinaryPattern() |
| Modifier and Type | Method and Description |
|---|---|
void |
analyseImage(FImage image)
Analyse an image.
|
static int[][] |
calculateLBP(FImage image)
Calculate the LBP for every pixel in the image.
|
static int |
calculateLBP(FImage image,
int x,
int y)
Calculate the basic LBP for a single point.
|
static int |
calculateLBP(FImage image,
Pixel point)
Calculate the basic LBP for a single point.
|
int[][] |
getPattern()
Get the pattern created during the last call to
analyseImage(FImage). |
protected int[][] pattern
public BasicLocalBinaryPattern()
public int[][] getPattern()
analyseImage(FImage).public static int[][] calculateLBP(FImage image)
image - the imagepublic static int calculateLBP(FImage image, int x, int y)
image - the imagex - the x-coordinate of the pointy - the y-coordinate of the pointpublic static int calculateLBP(FImage image, Pixel point)
image - the imagepoint - the pointpublic void analyseImage(FImage image)
ImageAnalyseranalyseImage in interface ImageAnalyser<FImage>image - The image to process in place.