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

MaxIndex() public method

Image pixel maximum. Buffer is internally allocated and freed.
public MaxIndex ( CudaDeviceVariable max, CudaDeviceVariable indexX, CudaDeviceVariable indexY ) : void
max 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)
return void
        public void MaxIndex(CudaDeviceVariable<byte> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
        {
            int bufferSize = MaxIndexGetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);

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

Same methods

NPPImage_8uC3::MaxIndex ( CudaDeviceVariable max, CudaDeviceVariable indexX, CudaDeviceVariable indexY, CudaDeviceVariable buffer ) : void
NPPImage_8uC3