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