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

MinMax() public method

Image pixel minimum and maximum. Buffer is internally allocated and freed.
public MinMax ( CudaDeviceVariable min, CudaDeviceVariable max ) : void
min CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(byte)
max CudaDeviceVariable Allocated device memory with size of at least 3 * sizeof(byte)
return void
        public void MinMax(CudaDeviceVariable<byte> min, CudaDeviceVariable<byte> max)
        {
            int bufferSize = MinMaxGetBufferHostSize();
            CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);

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

Same methods

NPPImage_8uC3::MinMax ( CudaDeviceVariable min, CudaDeviceVariable max, CudaDeviceVariable buffer ) : void
NPPImage_8uC3