LBP feature vector, returned as a 1-by-
N
vector of length
N
representing the number of features. LBP features
encode local texture information, which you can use for tasks such as
classification, detection, and recognition. The function partitions the
input image into non-overlapping cells. To collect information over larger
regions, select larger cell sizes. However, when you increase the cell size,
you lose local detail.
N
, depends on the number of cells
in the image,
numCells
, the number of neighbors,
P
, and the
Upright
parameter.
The number of cells is calculated as:
The figure shows an image with nine cell histograms. Each histogram
describes an LBP feature.
The size of the histogram
in each cell is [1,
B
], where
B
is
the number of bins in the histogram. The number of bins depends on
the
Upright
property and the number of neighbors,
P
.
Upright
|
Number
of Bins
|
true
|
(P x
P
–1) + 3)
|
false
|
(
P
+ 2)
|
The overall LBP feature length,
N
,
depends on the number of cells and the number of bins,
B
: