reg_grow(M,x_gridsize,y_gridsize,num_regions)
Performs the piecewise-constant energy-based region growing segmentation
of M into num_regions
regions, using initial grid spaced by x_gridsize
along x and y_gridsize
along y.
Arguments:
M is an image
matrix.
x_gridsize, y_gridsize
are integers greater than or equal to 2, and divisors of the image size.
num_regions
is an integer greater than or equal to 2.