Closed adishavit closed 9 years ago
Use this module: https://github.com/mikolalysenko/bitmap-to-boxes
Cool! Thanks :-)
BTW, is there a module for doing this for grayscale image? I.e. segment single color contiguous regions into rectangles.
You could use ndarray-ops.eq to pull out each level and segment them separately, but nothing right now that works out of the box.
Thanks.
Say I have a binary image that I would like to decompose with this lib. From the interface, it seems that the image (pixels) need to be decomposed into 4-connected contours. Is this correct?
If so, do you have a recommendation for a library that can do this?