The stackview.assist()
function allows to browse image processing functions. First, we need to import modules and functions we would like to browse through.
Note: Not all functions are supported and may never be. stackview identifies compatible functions from parameters and parameter annotations.
import stackview
import napari_segment_blobs_and_things_with_membranes as nsbatwm
import napari_simpleitk_image_processing as nsitk
import skimage.filters as skfilters
from pyclesperanto_prototype import voronoi_otsu_labeling, gauss_otsu_labeling, eroded_otsu_labeling, erode_connected_labels, label, \
erode_labels, dilate_labels, opening_labels, closing_labels, smooth_labels
import numpy as np
from skimage.io import imread
We also create some images in variables which will later be offered in pulldowns.
image1 = np.random.random((100, 100))
image2 = np.random.random((150, 150))
image3 = np.random.random((10, 150, 150))
blobs = imread("data/blobs.tif")
binary = blobs > 120
labels = label(binary)
dilated_labels = dilate_labels(labels, radius=7)
Next, we can use stackview.assist
to list all functions that are accessible in globals()
. If you search for specific functions, you can use the search field and enter terms such as gauss
or label
and the Operation
pulldown will be filtered. stackview searches for this term in the function name and also in the docstring. Thus, you can also search for nuclei
or membrane
because some of the imported functions have these terms in their documentation.
stackview.assist(context=globals(), continuous_update=True)
VBox(children=(Text(value='', description='Search', placeholder='Type here to search'), Dropdown(description='…