Builds a KD tree representation of a 2D color image. Recursively partitions the image into smaller and smaller regions and tests its pixel colors until they are deemed to be homogeneous (or pass a homogeneity criteria, or the tree reaches a maximum height.
Built with the Bridges library.