colour_checker_detection.detection.as_float32_array#
- colour_checker_detection.detection.as_float32_array(a: ArrayLike) NDArrayFloat[source]#
Convert specified variable \(a\) to
numpy.ndarrayusing np.float32numpy.dtype.- Parameters:
a (ArrayLike) – Variable \(a\) to convert.
- Returns:
Variable \(a\) converted to
numpy.ndarrayusing np.float32numpy.dtype.- Return type:
Examples
>>> as_float32_array([1, 2, 3]) array([...1...,...2...,...3...]...)