VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.ImageProcessing Namespace / ProcessingCommandBase Class / GetRegionOptimalDecomposition Method
Source image.
Rectangle, which must be decomposed.
Count of regions in decomposition.
Margin, in pixels, for each rectangle, which is necessary for correct work of algorithm.



In This Topic
    GetRegionOptimalDecomposition Method (ProcessingCommandBase)
    In This Topic
    Returns an array of rectangles, which represent optimal decomposition of the specified rectangle.
    Syntax
    'Declaration
     
    Public Overridable Function GetRegionOptimalDecomposition( _
       ByVal image As VintasoftImage, _
       ByVal rect As Rectangle, _
       ByVal regionCount As Integer, _
       ByRef requiredMargin As Integer _
    ) As Rectangle()
    public virtual Rectangle[] GetRegionOptimalDecomposition( 
       VintasoftImage image,
       Rectangle rect,
       int regionCount,
       out int requiredMargin
    )
    public: virtual Rectangle[]* GetRegionOptimalDecomposition( 
       VintasoftImage* image,
       Rectangle rect,
       int regionCount,
       [PARAMFLAG::Out] int requiredMargin
    ) 
    public:
    virtual array<Rectangle>^ GetRegionOptimalDecomposition( 
       VintasoftImage^ image,
       Rectangle rect,
       int regionCount,
       [Out] int requiredMargin
    ) 

    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.
    Remarks
    Parallel execution of command is not necessary if command returns one rectangle and rectangle is equal to the source rectangle (value of rect parameter).
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also