Library/ManagedCuda/NPP/NPPImage_16sC4.cs
/// <summary>
/// Four-channel 16-bit signed image DotProd. Buffer is internally allocated and freed. Ignoring alpha channel.
/// </summary>
/// <param name="src2">2nd source image</param>
/// <param name="pDp">Pointer to the computed dot product of the two images. (3 * sizeof(double))</param>
Four-channel 16-bit signed image DotProd. Buffer is internally allocated and freed. Ignoring alpha channel.
Four - channel 16 - bit signed image DotProd . Buffer is internally allocated and freed . Ignoring alpha channel .
public void ADotProduct(NPPImage_16sC4 src2, CudaDeviceVariable<double> pDp)
		{
			int bufferSize = DotProdGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.DotProd.nppiDotProd_16s64f_AC4R(_devPtrRoi, _pitch, src2.DevicePointerRoi, src2.Pitch, _sizeRoi, pDp.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiDotProd_16s64f_AC4R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void ADotProduct ( NPPImage_16sC4 src2 , CudaDeviceVariable < double > pDp ) { int bufferSize = DotProdGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . DotProd . nppiDotProd_16s64f_AC4R ( _devPtrRoi , _pitch , src2 . DevicePointerRoi , src2 . Pitch , _sizeRoi , pDp . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
Four-channel 16-bit signed image DotProd.
Four - channel 16 - bit signed image DotProd .
src2
NPPImage_16sC4
2nd source image
2nd source image
pDp
CudaDeviceVariable<double>
Pointer to the computed dot product of the two images. (3 * sizeof(double))
Pointer to the computed dot product of the two images . ( 3 * sizeof ( double ))