Matrix to image

operators.image.matrix_to_image(client, input_file='matrix.npy', output_file='image.tif', data_type='uint8', instance_type='x2large')
Convert a matrix to an image.

matrix_to_image( client,
input_file=’matrix.npy’,
output_file=’image.tif’,
data_type=’uint8’,
instance_type=’x2large’ )
Parameters:
  • input_file – Input matrix file (either .npy or .txt)

  • output_file – Output image file

  • data_type – Data type of the output image

  • instance_type – type of cloud instance used for processing