Map function to transform 2D imageΒΆ

plot imghist map func


/home/docs/checkouts/ UserWarning: Trying to register the cmap 'deep' which already exists.
  register_cmap(name=cmap, cmap=cmap_mpl)

from skimage.exposure import adjust_gamma

import seaborn_image as isns

cells = isns.load_image("cells")[:, :, 32]

f = isns.imghist(cells, map_func=adjust_gamma, gamma=0.5)

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

Gallery generated by Sphinx-Gallery