STK Graphics PrimitivesSend comments on this topic.
InitializeWithKernelAndDivisor Method (IAgStkGraphicsConvolutionFilterFactory)
See Also
Kernel
An array containing the 9 elements of the Kernel of the convolution matrix. The elements should be provided as the entire first row, followed by the entire second row, followed by the entire third row, each from left to right.
Divisor
The Divisor of the convolution.
Windows





Windows & Linux

Description

Initializes a new instance with the specified Kernel and Divisor.

Syntax

[Visual Basic .NET]
Public Function InitializeWithKernelAndDivisor( _
    ByVal Kernel As System.Array, _
    ByVal Divisor As Double _
) As IAgStkGraphicsConvolutionFilter
[C#]
public IAgStkGraphicsConvolutionFilter InitializeWithKernelAndDivisor(
    System.Array Kernel,
    double Divisor
);
[Managed C++]
public: IAgStkGraphicsConvolutionFilter^ InitializeWithKernelAndDivisor(
    System::Array ^ Kernel,
    double Divisor
);
[Unmanaged C++]
public: HRESULT InitializeWithKernelAndDivisor(
    SAFEARRAY * * Kernel,
    double Divisor,
    IAgStkGraphicsConvolutionFilter ** ppRetVal
);
[Java]
public IAgStkGraphicsConvolutionFilter initializeWithKernelAndDivisor(
    AgSafeArray Kernel,
    double Divisor
);
[Python - STK API ]
def InitializeWithKernelAndDivisor(self, Kernel:list, Divisor:float) -> "IAgStkGraphicsConvolutionFilter":

Parameters

Kernel
An array containing the 9 elements of the Kernel of the convolution matrix. The elements should be provided as the entire first row, followed by the entire second row, followed by the entire third row, each from left to right.
Divisor
The Divisor of the convolution.

See Also

Example

Shows the format of the Kernel parameter when creating a convolution filter.
[C#]
Array kernel = new object[] {
    1, 1, 1,
    1, 1, 1,
    1, 1, 1
};

IAgStkGraphicsConvolutionFilter convolutionFilter = sceneManager.Initializers.ConvolutionFilter.InitializeWithKernel(ref kernel);
Shows the format of the Kernel parameter when creating a convolution filter.
[Visual Basic .NET]
Dim kernel As Array = New Object() {1, 1, 1, 1, 1, 1, _
	1, 1, 1}

Dim convolutionFilter As IAgStkGraphicsConvolutionFilter = sceneManager.Initializers.ConvolutionFilter.InitializeWithKernel(kernel)
© 2024 Analytical Graphics, Inc. All Rights Reserved.