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

Max() public method

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

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

Same methods

NPPImage_8uC3::Max ( CudaDeviceVariable max ) : void
NPPImage_8uC3