Open
Description
It will sometimes be useful to represent pixel masks as regions. This should probably be implemented as a mask-to-polygon function with options for accuracy / contour smoothness. The most expensive polygon would have 2-3 points per pixel covering each corner, which is still cheap enough to be useful in some cases.