draw-multiblock-lbp

draw_multiblock_lbp

skimage.feature.draw_multiblock_lbp(img, r, c, width, height, lbp_code=0, color_greater_block=[1, 1, 1], color_less_block=[0, 0.69, 0.96], alpha=0.5) [source]

Multi-block local binary pattern visualization.

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:

img : 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 : list 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 : list 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.

References

[R146] Face Detection Based on Multi-Block LBP Representation. Lun Zhang, Rufeng Chu, Shiming Xiang, Shengcai Liao, Stan Z. Li http://www.cbsr.ia.ac.cn/users/scliao/papers/Zhang-ICB07-MBLBP.pdf
doc_scikit_image
2017-01-12 17:20:49
Comments
Leave a Comment

Please login to continue.