soft-matter / pims

Python Image Sequence: Load video and sequential images in many formats with a simple, consistent interface.
http://soft-matter.github.io/pims/
Other
262 stars 67 forks source link

Image enhancement in PIMS frames #396

Open medea95 opened 3 years ago

medea95 commented 3 years ago

Hi,

I am using PIMS for some image processing and I would like to enhance the contrast in my figures. With PIL, I would use the ImageEnhance.Contrast() function, but I could not find an equivalent function for PIMs frames. Is there a straightforward way to do it?

Thank you in advance!

GenevieveBuckley commented 3 years ago

That would be out of scope for PIMS, but perhaps you could use something like scikit-image's rescale_intensity function instead: https://scikit-image.org/docs/dev/api/skimage.exposure.html#skimage.exposure.rescale_intensity

medea95 commented 3 years ago

Thanks for the clarification!