pixAnd: Logical Operators for pairs of Pix Objects

View source: R/leptonica.R

pixAndR Documentation

Logical Operators for pairs of Pix Objects

Description

These functions allow one to perform pixel-wise logical operations on pairs of Pix-class objects.

Usage

pixAnd(s1, s2, target = NULL)
pixOr(s1, s2, target = NULL)
pixXor(s1, s2, target = NULL)
pixSubtract(s1, s2, target = NULL)

Arguments

s1,s2

a Pix-class object

target

either a Pix-class object or NULL. If a Pix is specified, this is used to store the answer. Otherwise, a new Pix is created and returned.

Value

These functions return either a new Pix-class object or the value of target.

Author(s)

Duncan Temple Lang

References

http://tpgit.github.io/UnOfficialLeptDocs/

See Also

pixRead GetInputImage pixConvertTo8 pixThresholdToValue


duncantl/Rtesseract documentation built on March 25, 2022, 5:50 a.m.