Library/ManagedCuda/NPP/NPPImage_8sC1.cs
/// <summary>
/// image L2 norm. No additional buffer is allocated.
/// </summary>
/// <param name="norm">Allocated device memory with size of at least 1 * sizeof(double)</param>
/// <param name="buffer">Allocated device memory with size of at <see cref="NormL1BufferHostSize()"/></param>
/// <param name="mask">Image mask</param>
image L2 norm. No additional buffer is allocated.
image L2 norm . No additional buffer is allocated .
public void NormL2(CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = NormL1BufferHostSize();
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.NormL2.nppiNorm_L2_8s_C1MR(_devPtrRoi, _pitch, mask.DevicePointerRoi, mask.Pitch, _sizeRoi, norm.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiNorm_L2_8s_C1MR", status));
			NPPException.CheckNppStatus(status, this);
		}
public void NormL2 ( CudaDeviceVariable < double > norm , NPPImage_8uC1 mask , CudaDeviceVariable < byte > buffer ) { int bufferSize = NormL1BufferHostSize ( ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . NormL2 . nppiNorm_L2_8s_C1MR ( _devPtrRoi , _pitch , mask . DevicePointerRoi , mask . Pitch , _sizeRoi , norm . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
image L2 norm.
image L2 norm .
norm
CudaDeviceVariable<double>
Allocated device memory with size of at least 1 * sizeof(double)
Allocated device memory with size of at least 1 * sizeof ( double )
mask
NPPImage_8uC1
None
buffer
CudaDeviceVariable<byte>
Allocated device memory with size of at
Allocated device memory with size of at