static Rect pixelSetBounds(PixelSet set) { Rect r = openImajRectangleToRect(set.calculateRegularBoundingBox()); r.w++; r.h++; ret r; }