Parameters
- image
- Source image.
- rect
- Rectangle, which must be decomposed.
- regionCount
- Count of regions in decomposition.
- requiredMargin
- Margin, in pixels, for each rectangle, which is necessary for correct work of algorithm.
Return Value
Array of rectangles, which represent optimal decomposition of the specified rectangle.