skimage 0.17.2

ParametersReturns
draw_multiblock_lbp(image, r, c, width, height, lbp_code=0, color_greater_block=(1, 1, 1), color_less_block=(0, 0.69, 0.96), alpha=0.5)

Blocks with higher sums are colored with alpha-blended white rectangles, whereas blocks with lower sums are colored alpha-blended cyan. Colors and the alpha parameter can be changed.

Parameters

image : ndarray of float or uint

Image on which to visualize the pattern.

r : int

Row-coordinate of top left corner of a rectangle containing feature.

c : int

Column-coordinate of top left corner of a rectangle containing feature.

width : int

Width of one of 9 equal rectangles that will be used to compute a feature.

height : int

Height of one of 9 equal rectangles that will be used to compute a feature.

lbp_code : int

The descriptor of feature to visualize. If not provided, the descriptor with 0 value will be used.

color_greater_block : tuple of 3 floats

Floats specifying the color for the block that has greater intensity value. They should be in the range [0, 1]. Corresponding values define (R, G, B) values. Default value is white (1, 1, 1).

color_greater_block : tuple of 3 floats

Floats specifying the color for the block that has greater intensity value. They should be in the range [0, 1]. Corresponding values define (R, G, B) values. Default value is cyan (0, 0.69, 0.96).

alpha : float

Value in the range [0, 1] that specifies opacity of visualization. 1 - fully transparent, 0 - opaque.

Returns

output : ndarray of float

Image with MB-LBP visualization.

Multi-block local binary pattern visualization.

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#386
type: <class 'function'>
Commit: