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

FilterRow() public method

Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor.
public FilterRow ( NPPImage_8uC3 dest, CudaDeviceVariable Kernel, int nKernelSize, int nAnchor, int nDivisor ) : void
dest NPPImage_8uC3 Destination image
Kernel CudaDeviceVariable Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.
nKernelSize int Length of the linear kernel array.
nAnchor int 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.
return void
        public void FilterRow(NPPImage_8uC3 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
        {
            status = NPPNativeMethods.NPPi.LinearFilter1D.nppiFilterRow_8u_C3R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, Kernel.DevicePointer, nKernelSize, nAnchor, nDivisor);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterRow_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::FilterRow ( NPPImage_8uC3 dst, CudaDeviceVariable pKernel, int nAnchor ) : void
NPPImage_8uC3