ImageFile.Stoner__Image__imagefuncs__clip_intensity

ImageFile.Stoner__Image__imagefuncs__clip_intensity(clip_negative=False, limits=None)

Clip intensity outside the range -1,1 or 0,1.

Keyword Arguments
  • clip_negative (bool) – if True clip to range 0,1 else range -1,1

  • limits (low,high) – Clip the intensity between low and high rather than zero and 1.

Ensure data range is -1 to 1 or 0 to 1 if clip_negative is True.