We could download and play with this software: - https://icy.bioimageanalysis.org/plugin/roi-statistics/ There is also this BSD library: - https://tirthajyoti.github.io/Scikit-image-book/Intro.html