Interactive histogram#

In this notebook we will create a histogram shown next to an image. By dragging the mouse in the image, one can create a new histogram of the intensities in the specified region.

import numpy as np
import stackview 
from skimage.io import imread

image = imread("data/blobs.tif")
stackview.histogram(image, zoom_factor=1.5)
image = imread("data/Haase_MRT_tfl3d1.tif")
stackview.histogram(image, zoom_factor=1.5)