Matrix to image folder

operators.image.matrix_to_image_folder(client, input_folder='/input_folder', output_folder='/output_folder', data_type='uint8', worker_instance_type='x2large', manager_instance_type='small', extension_input_file='.npy', extension_output_file='.tif', skip_existing_files=False)
Convert a matrix to an image.

matrix_to_image_folder(client,
input_folder=’/input_folder’,
output_folder=’/output_folder’,
data_type=’uint8’,
worker_instance_type=’x2large’,
manager_instance_type=”small”,
extension_input_folder=”.npy”,
extension_output_folder=”.tif”,
skip_existing_files = False )
Parameters:
  • data_type – Data type of the output image

  • input_folder – Input matrix folder (either .npy or .txt)

  • output_folder – Output image folder

  • worker_instance_type – cloud instance type of worker nodes

  • manager_instance_type – cloud instance type of manager node

  • extension_input_folder – File extension of files in folder for input_folder

  • extension_output_folder – File extension of files in folder for output_folder

  • skip_existing_files – skip files that already exist in the output folder