"""
====================
Build image pyramids
====================

The `build_gaussian_pyramid` function takes an image and yields successive
images shrunk by a constant scale factor. Image pyramids are often used, e.g.,
to implement algorithms for denoising, texture discrimination, and scale-
invariant detection.
"""

import numpy as np
import matplotlib.pyplot as plt

from skimage import data
from skimage.transform import pyramid_gaussian


image = data.lena()
rows, cols, dim = image.shape
pyramid = tuple(pyramid_gaussian(image, downscale=2))

composite_image = np.zeros((rows, cols + cols / 2, 3), dtype=np.double)

composite_image[:rows, :cols, :] = pyramid[0]

i_row = 0
for p in pyramid[1:]:
    n_rows, n_cols = p.shape[:2]
    composite_image[i_row:i_row + n_rows, cols:cols + n_cols] = p
    i_row += n_rows

plt.imshow(composite_image)
plt.show()

@@ -70,12 +70,14 @@
 he %60
-buil
+pyrami
 d_ga
@@ -86,16 +86,8 @@
 sian
-_pyramid
 %60 fu
@@ -133,16 +133,16 @@
 sive
-%0A
+ 
 images
- 
+%0A
 shru
@@ -212,12 +212,12 @@
 .g.,
-%0Ato 
+ to%0A
 impl
@@ -282,17 +282,17 @@
 d scale-
-%0A
+ 
 invarian
@@ -292,17 +292,17 @@
 nvariant
- 
+%0A
 detectio
@@ -304,16 +304,17 @@
 ection.%0A
+%0A
 %22%22%22%0A%0Aimp

Update name of pyramid function in pyramid example description