I need to convert a image (square) into a quadtree, in the ‘usual’ way – slice it in four, check if there’s only one color into each piece; if yes: close the node, else: repeat;
Anyone know an opensource program to it?
Preferably in Java, but I can use any language.
Thanks.
I imagine you could easily write a program that does it for you in OpenCV. Provided you already have some data structure to hold the actual tree, the main function would look something like this (I’ve written it for gray images, but it’s only the test that needs repeating three times for color):