// img must be square with width/height being a power of 2 static BWImage visualizeBWImageContrastQuadtree(BWImage img) { ret mergeBWImageHorizontally(pairToList(bwImageContrastQuadtree(img))); }