display_safe

imagepypelines.display_safe(src, max_count=255, cast_type=<class 'numpy.uint8'>)[source]

normalizes and bins an image

normalizes and bins the bins the input image to a given bit depth and max_count

Parameters:
  • src (np.ndarray) – input image
  • max_count (int,float) – max value in output image
  • cast_type (numpy.dtype) – np.dtype the final array is casted to
Returns:

normalized and binned image

Return type:

np.ndarray