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

Threshold() public method

Image threshold. If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.
public Threshold ( NPPImage_8uC3 dest, byte nThreshold, NppCmpOp eComparisonOperation ) : void
dest NPPImage_8uC3 Destination image
nThreshold byte The threshold value.
eComparisonOperation NppCmpOp eComparisonOperation. Only allowed values are and
return void
        public void Threshold(NPPImage_8uC3 dest, byte[] nThreshold, NppCmpOp eComparisonOperation)
        {
            status = NPPNativeMethods.NPPi.Threshold.nppiThreshold_8u_C3R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nThreshold, eComparisonOperation);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiThreshold_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::Threshold ( NPPImage_8uC3 dest, byte nThreshold, byte nValue, NppCmpOp eComparisonOperation ) : void
NPPImage_8uC3::Threshold ( byte nThreshold, NppCmpOp eComparisonOperation ) : void
NPPImage_8uC3::Threshold ( byte nThreshold, byte nValue, NppCmpOp eComparisonOperation ) : void
NPPImage_8uC3