hyperspy.misc.rgb_tools module¶
-
hyperspy.misc.rgb_tools.
is_rgb
(array)¶
-
hyperspy.misc.rgb_tools.
is_rgba
(array)¶
-
hyperspy.misc.rgb_tools.
is_rgbx
(array)¶
-
hyperspy.misc.rgb_tools.
regular_array2rgbx
(data)¶
-
hyperspy.misc.rgb_tools.
rgbx2regular_array
(data, plot_friendly=False)¶ Transforms a RGBx array into a standard one
Parameters: - data (numpy array of RGBx dtype) –
- plot_friendly (bool) – If True change the dtype to float when dtype is not uint8 and normalize the array so that it is ready to be plotted by matplotlib.