region_grow.region module

Execution of the algorithm to perform Region Grow

class region_grow.region.Region_Grow(pixels_indexes: numpy.ndarray, img_array: numpy.ndarray, classifier: region_grow.classifiers.Classifier)

Bases: object

It allows to calculate the connected component from the initial points.

Parameters
  • pixels_indexes (numpy.ndarray) – Indexes (X,Y) of each of the seed pixels

  • img_array (numpy.ndarray) – Pixels of the raster read

  • classifier (Classifier) – Sorting method to decide which neighboring pixels to add

grow()