I would like to divide an image into "rectangular" components that are similar according to some visual criterion:
For example I found these algorithms :
https://scikit-image.org/docs/dev/auto_examples/segmentation/plot_segmentations.html
which are able to divide an image into "superpixels", that may have an arbitrary shape. Is there an open source tool diving an image into regions of rectangular shape ? Just to be clear, the rectangles should constitute a partition of the original image.
Not sure this is the right SE community, this is my first message here. In case, feel free to suggest an other that may be more suited.
Update: after the comments, I am happy to rephrase the problem in the following way. Given a pixel of an image, find a "reasonable" bounding box containing the pixel. Of course the definition of reasonable is loosely defined up to now so I would be happy with different criteria.