Connected components labeling

operators.val.connected_components_labeling(client, filename_in='in.npy', filename_out='out.npy', dtype='float', no_type=0.0, value=1.0, instance_type='x2large')
Perform connected components labeling on a matrix.

connected_components_labeling( client,
filename_in=’in.npy’,
filename_out=’out.npy’,
dtype=’float’,
no_type=0.0,
value=1.0,
instance_type=’x2large’ )
Parameters:
  • filename_in – Input file path for the matrix

  • filename_out – Output file path for the labeled matrix

  • dtype – Data type of the matrix (default: float)

  • no_type – Value representing no_type in the matrix (default: 0.0)

  • value – Value representing value in the matrix (default: 1.0)

  • instance_type – type of cloud instance used for processing