What filters would I use to mimic these changes using macOS Preview

I would like to perform the same types of image operations that I performed in macOS Preview.app as shown in the attached image in ITK (specifically in python). Does ITK have filters that would mimic these changes?

I moved the “Contrast” slider all the way to the right.
And I adjusted the “middle” carrot thing just under the histogram to the right a bit.

Mike Jackson

Here is some description of contrast does. It could be implemented using ITK’s ShiftScaleImageFilter.

I am not familiar with macOS Preview.app, so cannot suggest a way to implement it’s histogram adjustment controls.