VintaSoft Imaging .NET SDK 12.3: Documentation for .NET developer
Vintasoft.Imaging.ImageProcessing.Filters Namespace / ConvolutionCommand Class / GetRegionOptimalDecomposition(VintasoftImage,Rectangle,Int32,Int32) Method
Syntax Remarks Requirements SeeAlso
In This Topic
    GetRegionOptimalDecomposition(VintasoftImage,Rectangle,Int32,Int32) Method (ConvolutionCommand)
    In This Topic
    Returns an array of rectangles, which represent optimal decomposition of the specified rectangle.
    Syntax
    'Declaration
    
    Public Overrides Function GetRegionOptimalDecomposition( _
    ByVal image
    Source image.
    As Vintasoft.Imaging.VintasoftImage, _
    ByVal rect
    Rectangle, which must be decomposed.
    As System.Drawing.Rectangle, _
    ByVal regionCount
    Count of regions in decomposition.
    As System.Int32, _
    ByRef requiredMargin
    Margin, in pixels, for each rectangle, which is necessary for correct work of algorithm.
    As System.Int32 _
    ) As System.Drawing.Rectangle
    public override System.Drawing.Rectangle GetRegionOptimalDecomposition(
    Vintasoft.Imaging.VintasoftImage image,
    System.Drawing.Rectangle rect,
    System.Int32 regionCount,
    out System.Int32 requiredMargin
    )
    public: System.Drawing.Rectangle* GetRegionOptimalDecomposition(
    Vintasoft.Imaging.VintasoftImage* image,
    System.Drawing.Rectangle* rect,
    System.Int32 regionCount,
    [PARAMFLAG::Out] System.Int32 requiredMargin
    ); override
    public:
    System.Drawing.Rectangle^ GetRegionOptimalDecomposition(
    Vintasoft.Imaging.VintasoftImage^ image,
    System.Drawing.Rectangle^ rect,
    System.Int32 regionCount,
    [Out] System.Int32 requiredMargin
    ); override

    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: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also