GetRegionOptimalDecomposition(VintasoftImage,Rectangle,Int32,Int32) Method (ProcessingCommandBase)
Returns an array of rectangles, which represent optimal decomposition of the specified rectangle.
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.
Parallel execution of command is not necessary if command returns one rectangle and rectangle is equal to the source rectangle (value of rect parameter).
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5