A method, computer readable storage, and apparatus for implementing a recursive
hierarchical segmentation algorithm on a parallel computing platform. The method
includes setting a bottom level of recursion that defines where a recursive division
of an image into sections stops dividing, and setting an intermediate level of
recursion where the recursive division changes from a parallel implementation into
a serial implementation. The segmentation algorithm is implemented according to
the set levels. The method can also include setting a convergence check level of
recursion with which the first level of recursion communicates with when performing
a convergence check.