pysdic.Image.to_file#

Image.to_file(file_path, dtype=None)[source]#

Save the image to a file using OpenCV write function.

Parameters:
  • file_path (str) – The path where the image will be saved.

  • dtype (Optional[numpy.dtype], optional) – The data type to which the image will be converted before saving (unsigned integer). If None, the image will be saved in numpy.uint8 format, by default None.

Return type:

None