colour_checker_detection.detection.as_float32_array#

colour_checker_detection.detection.as_float32_array(a: ArrayLike) NDArrayFloat[source]#

Convert given variable \(a\) to numpy.ndarray using np.float32 numpy.dtype.

Parameters:

a (ArrayLike) – Variable \(a\) to convert.

Returns:

Variable \(a\) converted to numpy.ndarray using np.float32 numpy.dtype.

Return type:

numpy.ndarray

Examples

>>> as_float32_array([1, 2, 3])  
array([...1...,...2...,...3...]...)