pysap.plotting.utils#

Module with usefull plottinting utility functions.

scaling(image, method='stretching')[source]#

Change the image dynamic.

Parameters
  • image (Image) – the image to be transformed.

  • method (str, default 'stretching') – the normalization method: ‘stretching’, ‘equalization’ or ‘adaptive’.

Returns

normalize_image – the normalized image.

Return type

Image

histogram(image, nbins=256, lower_cut=0.0, cumulate=0)[source]#

Compute the histogram of an input dataset.

Parameters
  • image (Image) – the image that contains the dataset to be analysed.

  • nbins (int, default 256) – the histogram number of bins.

  • lower_cut (float, default 0) – do not consider the intensities under this threshold.

  • cumulate (bool, default False) – if set compute the cumulate histogram.

Returns

hist_im – the generated histogram.

Return type

Image