Library/ManagedCuda/NPP/NPPImage_16sC3.cs
/// <summary>
/// Pixels under the mask are multiplied by the respective weights in the mask and the results are summed.<para/>
/// Before writing the result pixel the sum is scaled back via division by nDivisor.
/// </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="aKernelSize">Width and Height of the rectangular kernel.</param>
/// <param name="oAnchor">X and Y offsets 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>
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.
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 .
public void Filter(NPPImage_16sC3 dest, CudaDeviceVariable<int> Kernel, NppiSize aKernelSize, NppiPoint oAnchor, int nDivisor)
		{
			status = NPPNativeMethods.NPPi.Convolution.nppiFilter_16s_C3R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, Kernel.DevicePointer, aKernelSize, oAnchor, nDivisor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilter_16s_C3R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Filter ( NPPImage_16sC3 dest , CudaDeviceVariable < int > Kernel , NppiSize aKernelSize , NppiPoint oAnchor , int nDivisor ) { status = NPPNativeMethods . NPPi . Convolution . nppiFilter_16s_C3R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , Kernel . DevicePointer , aKernelSize , oAnchor , nDivisor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed.
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed .
dest
NPPImage_16sC3
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 .
aKernelSize
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 w.r.t the source pixel.
X and Y offsets 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 .