imwrite¶
tiatoolbox
.utils
.misc
.imwrite
- imwrite(image_path, img)[source]¶
Write numpy array to an image.
- Parameters:
image_path (PathLike) – File path (including extension) to save image to.
img (
numpy.ndarray
) – Image array of dtype uint8, MxNx3.
- Return type:
None
Examples
>>> from tiatoolbox import utils >>> import numpy as np >>> utils.misc.imwrite('BlankImage.jpg', ... np.ones([100, 100, 3]).astype('uint8')*255)