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

DotProduct() public méthode

Three-channel 8-bit unsigned image DotProd.
public DotProduct ( NPPImage_8uC3 src2, CudaDeviceVariable pDp, CudaDeviceVariable buffer ) : void
src2 NPPImage_8uC3 2nd source image
pDp CudaDeviceVariable Pointer to the computed dot product of the two images. (3 * sizeof(double))
buffer CudaDeviceVariable Allocated device memory with size of at
Résultat void
        public void DotProduct(NPPImage_8uC3 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
        {
            int bufferSize = DotProdGetBufferHostSize();
            if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");

            status = NPPNativeMethods.NPPi.DotProd.nppiDotProd_8u64f_C3R(_devPtrRoi, _pitch, src2.DevicePointerRoi, src2.Pitch, _sizeRoi, pDp.DevicePointer, buffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiDotProd_8u64f_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::DotProduct ( NPPImage_8uC3 src2, CudaDeviceVariable pDp ) : void
NPPImage_8uC3