This notebook serves testing if rectangular images are shown properly
import stackview
from skimage.io import imread, imshow
from skimage.filters import gaussian, threshold_otsu, sobel
from skimage.measure import label
image = imread('data/Haase_MRT_tfl3d1.tif')[:,80:120,:80]
stackview.insight(image)
|
|
When working with small images, the view may be suboptimal.
image.shape
(120, 40, 80)
stackview.slice(image)
VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=40, width=80),)),)), IntSlider(value=60, conti…
s = stackview.slice(image)
s.data = image
s
VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=40, width=80),)),)), IntSlider(value=60, conti…
stackview.slice(image[60])
VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=40, width=80),)),)), IntSlider(value=20, conti…
stackview.curtain(image[60], gaussian(image[60], sigma=5))
VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=40, width=80),)),)), IntSlider(value=20, conti…
stackview.curtain(image, gaussian(image, sigma=5))
VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=40, width=80),)),)), IntSlider(value=60, conti…
slice_image = imread('data/blobs.tif')
from skimage.filters import threshold_otsu
binary = (slice_image > threshold_otsu(slice_image))
stackview.curtain(slice_image, binary, continuous_update=True)
VBox(children=(HBox(children=(VBox(children=(ImageWidget(height=254, width=256),)),)), IntSlider(value=127, de…