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.float32numpy.dtype
.- Parameters:
a (ArrayLike) – Variable \(a\) to convert.
- Returns:
Variable \(a\) converted to
numpy.ndarray
using np.float32numpy.dtype
.- Return type:
Examples
>>> as_float32_array([1, 2, 3]) array([...1...,...2...,...3...]...)