Library/ManagedCuda/NPP/NPPImage_32fC4.cs
/// <summary>
/// Image pixel minimum. Buffer is internally allocated and freed. Not affecting Alpha.
/// </summary>
/// <param name="min">Allocated device memory with size of at least 3 * sizeof(float)</param>
/// <param name="indexX">Allocated device memory with size of at least 3 * sizeof(int)</param>
/// <param name="indexY">Allocated device memory with size of at least 3 * sizeof(int)</param>
Image pixel minimum. Buffer is internally allocated and freed. Not affecting Alpha.
Image pixel minimum . Buffer is internally allocated and freed . Not affecting Alpha .
public void MinIndexA(CudaDeviceVariable<float> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
		{
			int bufferSize = MinIndexGetBufferHostSizeA();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.MinIdx.nppiMinIndx_32f_AC4R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, min.DevicePointer, indexX.DevicePointer, indexY.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMinIndx_32f_AC4R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void MinIndexA ( CudaDeviceVariable < float > min , CudaDeviceVariable < int > indexX , CudaDeviceVariable < int > indexY ) { int bufferSize = MinIndexGetBufferHostSizeA ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . MinIdx . nppiMinIndx_32f_AC4R ( _devPtrRoi , _pitch , _sizeRoi , buffer . DevicePointer , min . DevicePointer , indexX . DevicePointer , indexY . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image pixel minimum.
Image pixel minimum .
min
CudaDeviceVariable<float>
Allocated device memory with size of at least 3 * sizeof(float)
Allocated device memory with size of at least 3 * sizeof ( float )
indexX
CudaDeviceVariable<int>
Allocated device memory with size of at least 3 * sizeof(int)
Allocated device memory with size of at least 3 * sizeof ( int )
indexY
CudaDeviceVariable<int>
Allocated device memory with size of at least 3 * sizeof(int)
Allocated device memory with size of at least 3 * sizeof ( int )