Library/ManagedCuda/NPP/NPPImage_8uC3.cs
/// <summary>
/// Image pixel minimum and maximum values with their indices. Buffer is internally allocated and freed.
/// </summary>
/// <param name="coi">Channel of interest (0, 1 or 2)</param>
/// <param name="min">Allocated device memory with size of at least 1 * sizeof(byte)</param>
/// <param name="max">Allocated device memory with size of at least 1 * sizeof(byte)</param>
/// <param name="minIndex">Allocated device memory with size of at least 1 * sizeof(NppiPoint)</param>
/// <param name="maxIndex">Allocated device memory with size of at least 1 * sizeof(NppiPoint)</param>
Image pixel minimum and maximum values with their indices. Buffer is internally allocated and freed.
Image pixel minimum and maximum values with their indices . Buffer is internally allocated and freed .
public void MinMaxIndex(int coi, CudaDeviceVariable<byte> min, CudaDeviceVariable<byte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex)
		{
			int bufferSize = MinMaxIndexGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.MinMaxIndxNew.nppiMinMaxIndx_8u_C3CR(_devPtrRoi, _pitch, _sizeRoi, coi, min.DevicePointer, max.DevicePointer, minIndex.DevicePointer, maxIndex.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMinMaxIndx_8u_C3CR", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void MinMaxIndex ( int coi , CudaDeviceVariable < byte > min , CudaDeviceVariable < byte > max , CudaDeviceVariable < NppiPoint > minIndex , CudaDeviceVariable < NppiPoint > maxIndex ) { int bufferSize = MinMaxIndexGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . MinMaxIndxNew . nppiMinMaxIndx_8u_C3CR ( _devPtrRoi , _pitch , _sizeRoi , coi , min . DevicePointer , max . DevicePointer , minIndex . DevicePointer , maxIndex . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image pixel minimum and maximum values with their indices.
Image pixel minimum and maximum values with their indices .
coi
int
Channel of interest (0, 1 or 2)
Channel of interest ( 0 1 or 2 )
min
CudaDeviceVariable<byte>
Allocated device memory with size of at least 1 * sizeof(byte)
Allocated device memory with size of at least 1 * sizeof ( byte )
max
CudaDeviceVariable<byte>
Allocated device memory with size of at least 1 * sizeof(byte)
Allocated device memory with size of at least 1 * sizeof ( byte )
minIndex
CudaDeviceVariable<NppiPoint>
Allocated device memory with size of at least 1 * sizeof(NppiPoint)
Allocated device memory with size of at least 1 * sizeof ( NppiPoint )
maxIndex
CudaDeviceVariable<NppiPoint>
Allocated device memory with size of at least 1 * sizeof(NppiPoint)
Allocated device memory with size of at least 1 * sizeof ( NppiPoint )