Library/ManagedCuda/NPP/NPPImage_32fC3.cs
/// <summary>
/// Image pixel minimum and maximum values with their indices. No additional buffer is allocated.
/// </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(float)</param>
/// <param name="max">Allocated device memory with size of at least 1 * sizeof(float)</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>
/// <param name="buffer">Allocated device memory with size of at <see cref="MinMaxIndexMaskedGetBufferHostSize()"/></param>
/// <param name="mask">If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0.</param>
Image pixel minimum and maximum values with their indices. No additional buffer is allocated.
Image pixel minimum and maximum values with their indices . No additional buffer is allocated .
public void MinMaxIndex(int coi, CudaDeviceVariable<float> min, CudaDeviceVariable<float> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = MinMaxIndexMaskedGetBufferHostSize();
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.MinMaxIndxNew.nppiMinMaxIndx_32f_C3CMR(_devPtrRoi, _pitch, mask.DevicePointerRoi, mask.Pitch, _sizeRoi, coi, min.DevicePointer, max.DevicePointer, minIndex.DevicePointer, maxIndex.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMinMaxIndx_32f_C3CMR", status));
			NPPException.CheckNppStatus(status, this);
		}
public void MinMaxIndex ( int coi , CudaDeviceVariable < float > min , CudaDeviceVariable < float > max , CudaDeviceVariable < NppiPoint > minIndex , CudaDeviceVariable < NppiPoint > maxIndex , NPPImage_8uC1 mask , CudaDeviceVariable < byte > buffer ) { int bufferSize = MinMaxIndexMaskedGetBufferHostSize ( ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . MinMaxIndxNew . nppiMinMaxIndx_32f_C3CMR ( _devPtrRoi , _pitch , mask . DevicePointerRoi , mask . Pitch , _sizeRoi , coi , min . DevicePointer , max . DevicePointer , minIndex . DevicePointer , maxIndex . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; 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<float>
Allocated device memory with size of at least 1 * sizeof(float)
Allocated device memory with size of at least 1 * sizeof ( float )
max
CudaDeviceVariable<float>
Allocated device memory with size of at least 1 * sizeof(float)
Allocated device memory with size of at least 1 * sizeof ( float )
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 )
mask
NPPImage_8uC1
If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0.
If the mask is filled with zeros then all the returned values are zeros i . e . pMinIndex = { 0 0 } pMaxIndex = { 0 0 } pMinValue = 0 pMaxValue = 0 .
buffer
CudaDeviceVariable<byte>
Allocated device memory with size of at
Allocated device memory with size of at