statistical_region_merging#

statistical_region_merging(image, Q=5.0, normalize=True)[source]#

Perform statistical region merging on a gray level image

Parameters:
  • image – A 2D or 3D numpy.ndarray representing the gray level image.

  • Q – Parameter controlling the intensity difference threshold for merging adjacent regions.

  • speaking (Roughly)

  • regions (Q is an estimate of the number of expected)

  • to. (though this is not strictly adhered)

  • value (The larger the Q)

  • produced. (the more regions are)

  • normalize – If True, normalize the input image to the range [0, max(dtype)]. Default is True

Returns:

A numpy.ndarray labeled image of the same shape and datatype as the input image.

Return type:

numpy.ndarray