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