diff --git a/doc/examples/plot_multiblock_local_binary_pattern.py b/doc/examples/plot_multiblock_local_binary_pattern.py index 5029c99c..f54d944e 100644 --- a/doc/examples/plot_multiblock_local_binary_pattern.py +++ b/doc/examples/plot_multiblock_local_binary_pattern.py @@ -3,23 +3,21 @@ Multi-Block Local Binary Pattern for texture classification =========================================================== -This example shows how to compute multi-block local binary -pattern (MB-LBP) features as well as how to visualize them. +This example shows how to compute multi-block local binary pattern (MB-LBP) +features as well as how to visualize them. -The features are calculated similarly to local binary patterns (LBPs), -except that summed blocks are used instead of individual pixel values. +The features are calculated similarly to local binary patterns (LBPs), except +that summed blocks are used instead of individual pixel values. -MB-LBP is an extension of LBP that can be computed on multiple scales -in constant time using the integral image. 9 equally-sized rectangles -are used to compute a feature. For each rectangle, the sum of the pixel -intensities is computed. Comparisons of these sums to that of the central -rectangle determine the feature, similarly to LBP -(See `LBP `_). - -First, we generate an image to illustrate the functioning of MB-LBP: -we take a (9, 9) rectangle and divide it into (3, 3) block, -upon which we then apply MB-LBP. +MB-LBP is an extension of LBP that can be computed on multiple scales in +constant time using the integral image. 9 equally-sized rectangles are used to +compute a feature. For each rectangle, the sum of the pixel intensities is +computed. Comparisons of these sums to that of the central rectangle determine +the feature, similarly to LBP (See `LBP `_). +First, we generate an image to illustrate the functioning of MB-LBP: consider +a (9, 9) rectangle and divide it into (3, 3) block, upon which we then apply +MB-LBP. """ from __future__ import print_function diff --git a/skimage/feature/tests/test_texture.py b/skimage/feature/tests/test_texture.py index c095fdda..ae54a6bb 100644 --- a/skimage/feature/tests/test_texture.py +++ b/skimage/feature/tests/test_texture.py @@ -1,8 +1,8 @@ import numpy as np from skimage.feature import (greycomatrix, - greycoprops, - local_binary_pattern, - multiblock_lbp) + greycoprops, + local_binary_pattern, + multiblock_lbp) from skimage._shared.testing import test_parallel from skimage.transform import integral_image