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

MinIndex() public method

Image pixel minimum. No additional buffer is allocated.
public MinIndex ( CudaDeviceVariable min, CudaDeviceVariable indexX, CudaDeviceVariable indexY, CudaDeviceVariable buffer ) : void
min CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(byte)
indexX CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(int)
indexY CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(int)
buffer CudaDeviceVariable Allocated device memory with size of at
return void
        public void MinIndex(CudaDeviceVariable<byte> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
        {
            int bufferSize = MinIndexGetBufferHostSize();
            if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");

            status = NPPNativeMethods.NPPi.MinIdx.nppiMinIndx_8u_C3R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, min.DevicePointer, indexX.DevicePointer, indexY.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMinIndx_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::MinIndex ( CudaDeviceVariable min, CudaDeviceVariable indexX, CudaDeviceVariable indexY ) : void
NPPImage_8uC3