Library/ManagedCuda/NPP/NPPImage_8uC4.cs
/// <summary>
/// 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. Not affecting Alpha.
/// </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="nKernelSize">Length of the linear kernel array.</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>
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. Not affecting Alpha.
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 . Not affecting Alpha .
public void FilterRowA(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
		{
			status = NPPNativeMethods.NPPi.LinearFilter1D.nppiFilterRow_8u_AC4R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, Kernel.DevicePointer, nKernelSize, nAnchor, nDivisor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterRow_8u_AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void FilterRowA ( NPPImage_8uC4 dest , CudaDeviceVariable < int > Kernel , int nKernelSize , int nAnchor , int nDivisor ) { status = NPPNativeMethods . NPPi . LinearFilter1D . nppiFilterRow_8u_AC4R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , Kernel . DevicePointer , nKernelSize , nAnchor , nDivisor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel.
Apply general linear Row convolution filter with rescaling in a 1D mask region around each source pixel .
dest
NPPImage_8uC4
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 .
nKernelSize
int
Length of the linear kernel array.
Length of the linear kernel array .
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 .