AGI STK Graphics 11 Send comments on this topic.
InitializeWithKernelDivisorAndOffset Method (IAgStkGraphicsConvolutionFilterFactory)
See Also  Example
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.
Offset
The Offset of the convolution.





Description

Initializes a new instance with the specified Kernel, Divisor, and Offset.

Syntax

[Visual Basic .NET]
Public Function InitializeWithKernelDivisorAndOffset( _
   ByRef Kernel As System.Array, _
   ByVal Divisor As Double, _
   ByVal Offset As Double _
) As IAgStkGraphicsConvolutionFilter

[C#]
public IAgStkGraphicsConvolutionFilter InitializeWithKernelDivisorAndOffset(
ref System.Array Kernel,
double Divisor,
double Offset
);

[Managed C++]
public: IAgStkGraphicsConvolutionFilter^ InitializeWithKernelDivisorAndOffset(
System::Array ^^ Kernel,
double Divisor,
double Offset
);

[Java]
public IAgStkGraphicsConvolutionFilter initializeWithKernelDivisorAndOffset(
Object[] Kernel,
double Divisor,
double Offset
);

[Unmanaged C++]
public: HRESULT InitializeWithKernelDivisorAndOffset(
SAFEARRAY ** Kernel,
double Divisor,
double Offset,
IAgStkGraphicsConvolutionFilter ** ReturnValue
);

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.
Offset
The Offset of the convolution.

Example

Shows the format of the Kernel parameter when creating a convolution filter.
[C#] Copy Code
Array kernel = new object[] { 
    111
    111
    111 
}; 
 
IAgStkGraphicsConvolutionFilter convolutionFilter = sceneManager.Initializers.ConvolutionFilter.InitializeWithKernel(ref kernel); 
 

Shows the format of the Kernel parameter when creating a convolution filter.
[Visual Basic .NET] Copy Code
Dim kernel As Array = New Object() {1, 1, 1, 1, 1, 1, _
    1, 1, 1}

Dim convolutionFilter As IAgStkGraphicsConvolutionFilter = sceneManager.Initializers.ConvolutionFilter.InitializeWithKernel(kernel)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1