Library/ManagedCuda/NPP/NPPImage_32uC1.cs
/// <summary>
/// One-channel 32-bit unsigned image DotProd.
/// </summary>
/// <param name="src2">2nd source image</param>
/// <param name="pDp">Pointer to the computed dot product of the two images. (1 * sizeof(double))</param>
/// <param name="buffer">Allocated device memory with size of at <see cref="DotProdGetBufferHostSize()"/></param>
One-channel 32-bit unsigned image DotProd.
One - channel 32 - bit unsigned image DotProd .
public void DotProduct(NPPImage_32uC1 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_32u64f_C1R(_devPtrRoi, _pitch, src2.DevicePointerRoi, src2.Pitch, _sizeRoi, pDp.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiDotProd_32u64f_C1R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void DotProduct ( NPPImage_32uC1 src2 , CudaDeviceVariable < double > pDp , CudaDeviceVariable < byte > buffer ) { int bufferSize = DotProdGetBufferHostSize ( ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . DotProd . nppiDotProd_32u64f_C1R ( _devPtrRoi , _pitch , src2 . DevicePointerRoi , src2 . Pitch , _sizeRoi , pDp . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
One-channel 32-bit unsigned image DotProd.
One - channel 32 - bit unsigned image DotProd .
src2
NPPImage_32uC1
2nd source image
2nd source image
pDp
CudaDeviceVariable<double>
Pointer to the computed dot product of the two images. (1 * sizeof(double))
Pointer to the computed dot product of the two images . ( 1 * sizeof ( double ))
buffer
CudaDeviceVariable<byte>
Allocated device memory with size of at
Allocated device memory with size of at