hyperspy.misc.rgb_tools module
- 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.