I am trying to find the equivalent function for the matlab imadjust function (https://www.mathworks.com/help/images/ref/imadjust.html)

I only need it for the default version: J=imadjust(I). The matlab documentation says that the command: J=imadjust(I) “By default, `imadjust`

saturates the bottom 1% and the top 1% of all pixel values. This operation increases the contrast of the output image `J`

.”

What is the equivalent function for this command in scikit-image. I have already tried:

p1, p99 = np.percentile(img, (1, 99))

J = exposure.rescale_intensity(I, in_range=(p1, p99))

and

J = exposure.equalize_adapthist(I)

but neither of these give the same output as the matlab J=imadjust(I) function.