import numpy as np
from skimage import data
from skimage.viewer import CollectionViewer

img = data.lena()
img_collection = [np.uint8(img * 0.9**i) for i in range(20)]

view = CollectionViewer(img_collection)
view.show()

import numpy as np
from skimage import data
from skimage.viewer import CollectionViewer
from skimage.transform import build_gaussian_pyramid


img = data.lena()
img_collection = tuple(build_gaussian_pyramid(img))

view = CollectionViewer(img_collection)
view.show()

Use gaussian pyramid function for collection viewer example
Use gaussian pyramid function for collection viewer example

  import numpy as np
  from skimage import data
  from skimage.viewer import CollectionViewer
+ from skimage.transform import build_gaussian_pyramid
+ 
  
  img = data.lena()
- img_collection = [np.uint8(img * 0.9**i) for i in range(20)]
+ img_collection = tuple(build_gaussian_pyramid(img))
  
  view = CollectionViewer(img_collection)
  view.show()
  
Use gaussian pyramid function for collection viewer example
## Code Before:
import numpy as np
from skimage import data
from skimage.viewer import CollectionViewer

img = data.lena()
img_collection = [np.uint8(img * 0.9**i) for i in range(20)]

view = CollectionViewer(img_collection)
view.show()

## Instruction:
Use gaussian pyramid function for collection viewer example
## Code After:
import numpy as np
from skimage import data
from skimage.viewer import CollectionViewer
from skimage.transform import build_gaussian_pyramid


img = data.lena()
img_collection = tuple(build_gaussian_pyramid(img))

view = CollectionViewer(img_collection)
view.show()
