darsia.convert_dtype#
- convert_dtype(img, dtype)[source]#
Convert image to the specified dtype.
- Parameters:
- img
np.ndarray Image.
- dtype
np.dtype Dtype to convert to.
- img
- Returns:
np.ndarrayConverted image.
Convert image to the specified dtype.
np.ndarrayImage.
np.dtypeDtype to convert to.
np.ndarrayConverted image.