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.
Image on which to visualize the pattern.
Row-coordinate of top left corner of a rectangle containing feature.
Column-coordinate of top left corner of a rectangle containing feature.
Width of one of 9 equal rectangles that will be used to compute a feature.
Height of one of 9 equal rectangles that will be used to compute a feature.
The descriptor of feature to visualize. If not provided, the descriptor with 0 value will be used.
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).
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).
Value in the range [0, 1] that specifies opacity of visualization. 1 - fully transparent, 0 - opaque.
Image with MB-LBP visualization.
Multi-block local binary pattern visualization.
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