ptypy.utils.plot_utils.P1A_to_HSV#

ptypy.utils.plot_utils.P1A_to_HSV(cin, vmin=0.0, vmax=None)#

Transforms a complex array into an RGB image, mapping phase to hue, amplitude to value and keeping maximum saturation.

Parameters:
  • cin (ndarray) – Complex input. Must be two-dimensional.

  • vmin (float) – Clip amplitude of input into this interval.

  • vmax (float) – Clip amplitude of input into this interval.

Returns:

rgb – Three dimensional output.

Return type:

ndarray