"""Test converting an image to a pyramid.
"""

import numpy as np
from skimage.transform import pyramid_gaussian
import napari

img = np.random.random((1000, 1000))
pyramid = list(pyramid_gaussian(img, multichannel=False))
#pyramid = tuple(pyramid_gaussian(img, multichannel=False))
#pyramid = np.asarray(tuple(pyramid_gaussian(img, multichannel=False)))

print(img.shape, img.min(), img.max())
print(len(pyramid))
print([p.shape for p in pyramid])

with napari.gui_qt():
    viewer = napari.view_image(pyramid)

197803f4688cc883322a4182921522bc1b31c3c7
<mask token>

<mask token>
print(img.shape, img.min(), img.max())
print(len(pyramid))
print([p.shape for p in pyramid])
with napari.gui_qt():
    viewer = napari.view_image(pyramid)

<mask token>
img = np.random.random((1000, 1000))
pyramid = list(pyramid_gaussian(img, multichannel=False))
print(img.shape, img.min(), img.max())
print(len(pyramid))
print([p.shape for p in pyramid])
with napari.gui_qt():
    viewer = napari.view_image(pyramid)

<mask token>
import numpy as np
from skimage.transform import pyramid_gaussian
import napari
img = np.random.random((1000, 1000))
pyramid = list(pyramid_gaussian(img, multichannel=False))
print(img.shape, img.min(), img.max())
print(len(pyramid))
print([p.shape for p in pyramid])
with napari.gui_qt():
    viewer = napari.view_image(pyramid)

"""Test converting an image to a pyramid.
"""

import numpy as np
from skimage.transform import pyramid_gaussian
import napari

img = np.random.random((1000, 1000))
pyramid = list(pyramid_gaussian(img, multichannel=False))
#pyramid = tuple(pyramid_gaussian(img, multichannel=False))
#pyramid = np.asarray(tuple(pyramid_gaussian(img, multichannel=False)))

print(img.shape, img.min(), img.max())
print(len(pyramid))
print([p.shape for p in pyramid])

with napari.gui_qt():
    viewer = napari.view_image(pyramid)
