Library/ManagedCuda/NPP/NPPImage_16sC4.cs
/// <summary>
/// General purpose 1D convolution column filter with border control.<para/>
/// Pixels under the mask are multiplied by the respective weights in the mask
/// and the results are summed. Before writing the result pixel the sum is scaled
/// back via division by nDivisor. If any portion of the mask overlaps the source
/// image boundary the requested border type operation is applied to all mask pixels
/// which fall outside of the source image.
/// </summary>
/// <param name="dest">Destination image</param>
/// <param name="Kernel">Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.</param>
/// <param name="nAnchor">X offset of the kernel origin frame of reference w.r.t the source pixel.</param>
/// <param name="nDivisor">The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.</param>
/// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
General purpose 1D convolution column filter with border control.
Pixels under the mask are multiplied by the respective weights in the mask
and the results are summed. Before writing the result pixel the sum is scaled
back via division by nDivisor. If any portion of the mask overlaps the source
image boundary the requested border type operation is applied to all mask pixels
which fall outside of the source image.
General purpose 1D convolution column filter with border control . Pixels under the mask are multiplied by the respective weights in the mask and the results are summed . Before writing the result pixel the sum is scaled back via division by nDivisor . If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image .
public void FilterColumnBorder(NPPImage_16sC4 dest, CudaDeviceVariable<int> Kernel, int nAnchor, int nDivisor, NppiBorderType eBorderType)
		{
			status = NPPNativeMethods.NPPi.LinearFilter1D.nppiFilterColumnBorder_16s_C4R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, dest.SizeRoi, Kernel.DevicePointer, Kernel.Size, nAnchor, nDivisor, eBorderType);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterColumnBorder_16s_C4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void FilterColumnBorder ( NPPImage_16sC4 dest , CudaDeviceVariable < int > Kernel , int nAnchor , int nDivisor , NppiBorderType eBorderType ) { status = NPPNativeMethods . NPPi . LinearFilter1D . nppiFilterColumnBorder_16s_C4R ( _devPtr , _pitch , _sizeOriginal , _pointRoi , dest . DevicePointerRoi , dest . Pitch , dest . SizeRoi , Kernel . DevicePointer , Kernel . Size , nAnchor , nDivisor , eBorderType ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
General purpose 1D convolution column filter with border control.
General purpose 1D convolution column filter with border control .
dest
NPPImage_16sC4
None
Kernel
CudaDeviceVariable<int>
Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.
Pointer to the start address of the kernel coefficient array . Coeffcients are expected to be stored in reverse order .
nAnchor
int
X offset of the kernel origin frame of reference w.r.t the source pixel.
X offset of the kernel origin frame of reference w . r . t the source pixel .
nDivisor
int
The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.
The factor by which the convolved summation from the Filter operation should be divided . If equal to the sum of coefficients this will keep the maximum result value within full scale .
eBorderType
NppiBorderType
The border type operation to be applied at source image border boundaries.
The border type operation to be applied at source image border boundaries .