ManagedCuda.NPP.NPPImage_8uC3.MinMaxIndex C# (CSharp) Method

MinMaxIndex() public method

Image pixel minimum and maximum values with their indices. No additional buffer is allocated.
public MinMaxIndex ( int coi, CudaDeviceVariable min, CudaDeviceVariable max, CudaDeviceVariable minIndex, CudaDeviceVariable maxIndex, NPPImage_8uC1 mask, CudaDeviceVariable buffer ) : void
coi int Channel of interest (0, 1 or 2)
min CudaDeviceVariable Allocated device memory with size of at least 1 * sizeof(byte)
max CudaDeviceVariable Allocated device memory with size of at least 1 * sizeof(byte)
minIndex CudaDeviceVariable Allocated device memory with size of at least 1 * sizeof(NppiPoint)
maxIndex CudaDeviceVariable 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.
buffer CudaDeviceVariable Allocated device memory with size of at
return void
        public void MinMaxIndex(int coi, CudaDeviceVariable<byte> min, CudaDeviceVariable<byte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
        {
            int bufferSize = MinMaxIndexGetBufferHostSize();
            if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");

            status = NPPNativeMethods.NPPi.MinMaxIndxNew.nppiMinMaxIndx_8u_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_8u_C3CMR", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::MinMaxIndex ( int coi, CudaDeviceVariable min, CudaDeviceVariable max, CudaDeviceVariable minIndex, CudaDeviceVariable maxIndex ) : void
NPPImage_8uC3::MinMaxIndex ( int coi, CudaDeviceVariable min, CudaDeviceVariable max, CudaDeviceVariable minIndex, CudaDeviceVariable maxIndex, CudaDeviceVariable buffer ) : void
NPPImage_8uC3::MinMaxIndex ( int coi, CudaDeviceVariable min, CudaDeviceVariable max, CudaDeviceVariable minIndex, CudaDeviceVariable maxIndex, NPPImage_8uC1 mask ) : void
NPPImage_8uC3