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

MinIndex() public method

Image pixel minimum. Buffer is internally allocated and freed.
public MinIndex ( CudaDeviceVariable min, CudaDeviceVariable indexX, CudaDeviceVariable indexY ) : void
min CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(short)
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)
return void
        public void MinIndex(CudaDeviceVariable<short> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
        {
            int bufferSize = MinIndexGetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);

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

Same methods

NPPImage_16sC3::MinIndex ( CudaDeviceVariable min, CudaDeviceVariable indexX, CudaDeviceVariable indexY, CudaDeviceVariable buffer ) : void
NPPImage_16sC3