Library/ManagedCuda/NPP/NPPImage_8uC1.cs
/// <summary>
/// Single channel 8-bit unsigned to 16-bit signed convolution filter with border control.<para/>
/// General purpose 2D convolution filter using floating-point weights 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. <para/>
/// </summary>
/// <param name="dest">Destination image</param>
/// <param name="pKernel">Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order</param>
/// <param name="nKernelSize">Width and Height of the rectangular kernel.</param>
/// <param name="oAnchor">X and Y offsets of the kernel origin frame of reference relative to the source pixel.</param>
/// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
Single channel 8-bit unsigned to 16-bit signed convolution filter with border control.
General purpose 2D convolution filter using floating-point weights 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.
Single channel 8 - bit unsigned to 16 - bit signed convolution filter with border control . General purpose 2D convolution filter using floating - point weights 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 FilterBorder(NPPImage_16sC1 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
		{
			status = NPPNativeMethods.NPPi.FilterBorder32f.nppiFilterBorder32f_8u16s_C1R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, dest.SizeRoi, pKernel.DevicePointer, nKernelSize, oAnchor, eBorderType);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterBorder32f_8u16s_C1R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void FilterBorder ( NPPImage_16sC1 dest , CudaDeviceVariable < float > pKernel , NppiSize nKernelSize , NppiPoint oAnchor , NppiBorderType eBorderType ) { status = NPPNativeMethods . NPPi . FilterBorder32f . nppiFilterBorder32f_8u16s_C1R ( _devPtr , _pitch , _sizeOriginal , _pointRoi , dest . DevicePointerRoi , dest . Pitch , dest . SizeRoi , pKernel . DevicePointer , nKernelSize , oAnchor , eBorderType ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Single channel 8-bit unsigned to 16-bit signed convolution filter with border control.
Single channel 8 - bit unsigned to 16 - bit signed convolution filter with border control .
dest
NPPImage_16sC1
None
pKernel
CudaDeviceVariable<float>
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
nKernelSize
NppiSize
Width and Height of the rectangular kernel.
Width and Height of the rectangular kernel .
oAnchor
NppiPoint
X and Y offsets of the kernel origin frame of reference relative to the source pixel.
X and Y offsets of the kernel origin frame of reference relative to the source pixel .
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 .