Visualize image distributionΒΆ

[1]:
import seaborn_image as isns

isns.set_context("notebook")
/home/docs/checkouts/readthedocs.org/user_builds/seaborn-image/envs/latest/lib/python3.8/site-packages/traitlets/traitlets.py:3044: FutureWarning: --rc={'figure.dpi': 96} for dict-traits is deprecated in traitlets 5.0. You can pass --rc <key=value> ... multiple times to add items to a dict.
  warn(
[2]:
img = isns.load_image("polymer")
[3]:
f = isns.imghist(img, describe=True)
No. of Obs. : 65536
Min. Value : -8.2457214
Max. Value : 43.714034999999996
Mean : 7.456410761947062
Variance : 92.02680396572863
Skewness : 0.47745180538933696
../_images/Tutorial_Image_Distribution_3_1.svg
[4]:
f = isns.imghist(img, bins=250)
../_images/Tutorial_Image_Distribution_4_0.svg
[5]:
f = isns.imghist(img, dx=15, units="nm", cmap="YlGnBu_r", cbar_label="Height (nm)")
../_images/Tutorial_Image_Distribution_5_0.svg
[6]:
f = isns.imghist(img, orientation="h", cbar_label="Height (nm)")
../_images/Tutorial_Image_Distribution_6_0.svg