@Reference(type=Article, author={"Ojala, Timo","Pietik\"{a}inen, Matti","M\"{a}enp\"{a}\"{a}, Topi"}, title="Multiresolution Gray-Scale and Rotation Invariant Texture Classification with Local Binary Patterns", year="2002", journal="IEEE Trans. Pattern Anal. Mach. Intell.", pages={"971","","987"}, url="http://dx.doi.org/10.1109/TPAMI.2002.1017623", month="July", number="7", publisher="IEEE Computer Society", volume="24", customData={"date","July 2002","issn","0162-8828","numpages","17","doi","10.1109/TPAMI.2002.1017623","acmid","628808","address","Washington, DC, USA"}) public class ExtendedLocalBinaryPattern extends Object implements ImageAnalyser<FImage>
Modifier and Type | Field and Description |
---|---|
protected int[][] |
pattern |
protected float |
radius |
protected int |
samples |
Constructor and Description |
---|
ExtendedLocalBinaryPattern(float radius,
int samples)
Construct an extended LBP extractor with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
analyseImage(FImage image)
Analyse an image.
|
static int[][] |
calculateLBP(FImage image,
float radius,
int samples)
Calculate the LBP for every pixel in the image.
|
static int |
calculateLBP(FImage image,
float radius,
int samples,
int x,
int y)
Calculate the extended LBP for a single point.
|
static int |
calculateLBP(FImage image,
float radius,
int samples,
Pixel point)
Calculate the extended LBP for a single point.
|
int[][] |
getPattern()
Get the pattern created during the last call to
analyseImage(FImage) . |
protected int[][] pattern
protected float radius
protected int samples
public ExtendedLocalBinaryPattern(float radius, int samples)
radius
- the radius of the sampling circlesamples
- the number of samples around the circlepublic static int[][] calculateLBP(FImage image, float radius, int samples)
image
- the imageradius
- the radius of the sampling circlesamples
- the number of samples around the circlepublic static int calculateLBP(FImage image, float radius, int samples, int x, int y)
image
- the imageradius
- the radius of the sampling circlesamples
- the number of samples around the circlex
- the x-coordinate of the pointy
- the y-coordinate of the pointpublic static int calculateLBP(FImage image, float radius, int samples, Pixel point)
image
- the imageradius
- the radius of the sampling circlesamples
- the number of samples around the circlepoint
- the pointpublic void analyseImage(FImage image)
ImageAnalyser
analyseImage
in interface ImageAnalyser<FImage>
image
- The image to process in place.public int[][] getPattern()
analyseImage(FImage)
.