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

DotProduct() public method

Three-channel 8-bit unsigned image DotProd. Buffer is internally allocated and freed.
public DotProduct ( NPPImage_8uC3 src2, CudaDeviceVariable pDp ) : void
src2 NPPImage_8uC3 2nd source image
pDp CudaDeviceVariable Pointer to the computed dot product of the two images. (3 * sizeof(double))
return void
        public void DotProduct(NPPImage_8uC3 src2, CudaDeviceVariable<double> pDp)
        {
            int bufferSize = DotProdGetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);

            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));
            buffer.Dispose();
            NPPException.CheckNppStatus(status, this);
        }

Same methods

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