ManagedCuda.NPP.NPPImage_8uC3.Filter C# (CSharp) Méthode

Filter() public méthode

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 Filter ( NPPImage_8uC3 dest, CudaDeviceVariable Kernel, NppiSize aKernelSize, NppiPoint oAnchor, 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.
aKernelSize NppiSize 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.
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.
Résultat void
        public void Filter(NPPImage_8uC3 dest, CudaDeviceVariable<int> Kernel, NppiSize aKernelSize, NppiPoint oAnchor, int nDivisor)
        {
            status = NPPNativeMethods.NPPi.Convolution.nppiFilter_8u_C3R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, Kernel.DevicePointer, aKernelSize, oAnchor, nDivisor);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilter_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::Filter ( NPPImage_16sC3 dst, CudaDeviceVariable pKernel, NppiSize oKernelSize, NppiPoint oAnchor ) : void
NPPImage_8uC3::Filter ( NPPImage_8uC3 dst, CudaDeviceVariable pKernel, NppiSize oKernelSize, NppiPoint oAnchor ) : void
NPPImage_8uC3