colour.io.as_3_channels_image#
- colour.io.as_3_channels_image(a: ArrayLike) NDArrayFloat [source]#
Convert given array \(a\) to a 3-channels image-like representation.
- Parameters:
a (ArrayLike) – Array \(a\) to convert to a 3-channels image-like representation.
- Returns:
3-channels image-like representation of array \(a\).
- Return type:
class`numpy.ndarray`
Examples
>>> as_3_channels_image(0.18) array([[[ 0.18, 0.18, 0.18]]]) >>> as_3_channels_image([0.18]) array([[[ 0.18, 0.18, 0.18]]]) >>> as_3_channels_image([0.18, 0.18, 0.18]) array([[[ 0.18, 0.18, 0.18]]]) >>> as_3_channels_image([[0.18, 0.18, 0.18]]) array([[[ 0.18, 0.18, 0.18]]]) >>> as_3_channels_image([[[0.18, 0.18, 0.18]]]) array([[[ 0.18, 0.18, 0.18]]]) >>> as_3_channels_image([[[[0.18, 0.18, 0.18]]]]) array([[[ 0.18, 0.18, 0.18]]])