ManagedCuda.NPP.NPPImage_8uC3.FilterBorder C# (CSharp) Method

FilterBorder() public method

Three channel 8-bit unsigned convolution filter with border control. General purpose 2D convolution 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 FilterBorder ( NPPImage_8uC3 dest, CudaDeviceVariable pKernel, NppiSize nKernelSize, NppiPoint oAnchor, int nDivisor, NppiBorderType eBorderType ) : void
dest NPPImage_8uC3 Destination image
pKernel CudaDeviceVariable 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.
oAnchor NppiPoint X and Y offsets of the kernel origin frame of reference relative to 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.
eBorderType NppiBorderType The border type operation to be applied at source image border boundaries.
return void
        public void FilterBorder(NPPImage_8uC3 dest, CudaDeviceVariable<int> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, int nDivisor, NppiBorderType eBorderType)
        {
            status = NPPNativeMethods.NPPi.FilterBorder.nppiFilterBorder_8u_C3R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, dest.SizeRoi, pKernel.DevicePointer, nKernelSize, oAnchor, nDivisor, eBorderType);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterBorder_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::FilterBorder ( NPPImage_16sC3 dest, CudaDeviceVariable pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType ) : void
NPPImage_8uC3::FilterBorder ( NPPImage_8uC3 dest, CudaDeviceVariable pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType ) : void
NPPImage_8uC3