def find_objects(input, max_label=0):
 input = numpy.asarray(input)
 if numpy.iscomplexobj(input):
  raise TypeError('Complex type not supported')
 if (max_label < 1):
  max_label = input.max()
 return _nd_image.find_objects(input, max_label)

def find_objects ( input , max_label = 0 ) : input = numpy . asarray ( input ) if numpy . iscomplexobj ( input ) : raise TypeError ( 'Complex type not supported' ) if ( max_label < 1 ) : max_label = input . max ( ) return _nd_image . find_objects ( input , max_label )
find objects in a labeled array .