ImageFile.Stoner__Image__imagefuncs__adjust_contrast¶
- ImageFile.Stoner__Image__imagefuncs__adjust_contrast(lims=(0.1, 0.9), percent=True)¶
Rescale the intensity of the image.
Mostly a call through to skimage.exposure.rescale_intensity. The absolute limits of contrast are added to the metadata as ‘adjust_contrast’
- lims: 2-tuple
limits of rescaling the intensity
- percent: bool
if True then lims are the give the percentile of the image intensity histogram, otherwise lims are absolute
- image: ImageArray
rescaled image