Apply multiple transformations to list of 2-D imagesΒΆ

plot ImageGrid map func list to img list

Out:

/home/docs/checkouts/readthedocs.org/user_builds/seaborn-image/envs/latest/lib/python3.8/site-packages/seaborn_image/_context.py:128: UserWarning: Trying to register the cmap 'deep' which already exists.
  register_cmap(name=cmap, cmap=cmap_mpl)

from scipy.ndimage import median_filter, sobel
from skimage.filters import gaussian

import seaborn_image as isns

pl = isns.load_image("fluorescence")
polymer = isns.load_image("polymer")

map_func = [gaussian, median_filter, sobel]
map_func_kw = [{"sigma": 1.5}, {"size": 10}, None]

g = isns.ImageGrid(
    [pl, polymer],
    map_func=map_func,
    map_func_kw=map_func_kw,
    col_wrap=2,
    cmap="inferno",
)

Total running time of the script: ( 0 minutes 1.126 seconds)

Gallery generated by Sphinx-Gallery