skimage 0.17.2

ParametersReturns
local_binary_pattern(image, P, R, method='default')

LBP is an invariant descriptor that can be used for texture classification.

Parameters

image : (N, M) array

Graylevel image.

P : int

Number of circularly symmetric neighbour set points (quantization of the angular space).

R : float

Radius of circle (spatial resolution of the operator).

method : {'default', 'ror', 'uniform', 'var'}

Method to determine the pattern.

  • 'default': original local binary pattern which is gray scale but not

    rotation invariant.

  • 'ror': extension of default implementation which is gray scale and

    rotation invariant.

  • 'uniform': improved rotation invariance with uniform patterns and

    finer quantization of the angular space which is gray scale and rotation invariant.

  • 'nri_uniform': non rotation-invariant uniform patterns variant

    which is only gray scale invariant .

  • 'var': rotation invariant variance measures of the contrast of local

    image texture which is rotation but not gray scale invariant.

Returns

output : (N, M) array

LBP image.

Gray scale and rotation invariant LBP (Local Binary Patterns).

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/feature/texture.py#281
type: <class 'function'>
Commit: