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.rgb16= dtype([('R', '<u2'), ('G', '<u2'), ('B', '<u2')])¶
-
hyperspy.misc.rgb_tools.rgb8= dtype([('R', 'u1'), ('G', 'u1'), ('B', 'u1')])¶
-
hyperspy.misc.rgb_tools.rgb_dtypes= {'rgb16': dtype([('R', '<u2'), ('G', '<u2'), ('B', '<u2')]), 'rgb8': dtype([('R', 'u1'), ('G', 'u1'), ('B', 'u1')]), 'rgba16': dtype([('R', '<u2'), ('G', '<u2'), ('B', '<u2'), ('A', '<u2')]), 'rgba8': dtype([('R', 'u1'), ('G', 'u1'), ('B', 'u1'), ('A', 'u1')])}¶
-
hyperspy.misc.rgb_tools.rgba16= dtype([('R', '<u2'), ('G', '<u2'), ('B', '<u2'), ('A', '<u2')])¶
-
hyperspy.misc.rgb_tools.rgba8= dtype([('R', 'u1'), ('G', 'u1'), ('B', 'u1'), ('A', 'u1')])¶
-
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.