The Quadtree-Based Segmentation algorithm splits the pixel domain or an image object
domain into a quadtree grid formed by square objects.
A quadtree grid consists of squares with sides each having a power of two and aligned
to the image left and top borders. It is applied to all objects in the domain and each
object is cut along these gridlines. The quadtree structure is built so that each square has
a maximum possible size and also fulfills the homogeneity criteria defined by the mode
and scale parameters.