Processing images using SimpleITK#
See also
import numpy as np
from skimage.io import imread
import napari_simpleitk_image_processing as nsitk
import stackview
blobs = imread('https://samples.fiji.sc/blobs.png')
stackview.insight(blobs)
|
Median filter#
nsitk.median_filter(blobs, 5, 5, 0)
n-sitk made image
|
Gaussian blur#
nsitk.gaussian_blur(blobs, 10, 10, 0)
n-sitk made image
|
Edge enhancement / edge detection#
nsitk.laplacian_filter(blobs)
n-sitk made image
|
nsitk.laplacian_of_gaussian_filter(blobs, sigma=20)
n-sitk made image
|
nsitk.sobel(blobs)
n-sitk made image
|
nsitk.gradient_magnitude(blobs)
n-sitk made image
|
nsitk.morphological_gradient(blobs)
n-sitk made image
|
nsitk.standard_deviation_filter(blobs)