MAN page from Mandrake Other XITE-3.3-3.i386.rpm
LOGICAL
Section: User Commands (1)
Updated: 16 Mar 1998
Index
NAME
logical - logical pixel by pixel operations
SYNTAX
logical -and <inimage1> <inimage2> <outimage>
logical -or <inimage1> <inimage2> <outimage>
logical -xor <inimage1> <inimage2> <outimage>
logical -not <inimage> <outimage>
logical -band <inimage1> <inimage2> <outimage>
logical -bor <inimage1> <inimage2> <outimage>
logical -bxor <inimage1> <inimage2> <outimage>
logical -bnot <inimage> <outimage>
logical -eq <inimage1> <inimage2> <outimage>
logical -ne <inimage1> <inimage2> <outimage>
logical -lt <inimage1> <inimage2> <outimage>
logical -le <inimage1> <inimage2> <outimage>
logical -gt <inimage1> <inimage2> <outimage>
logical -ge <inimage1> <inimage2> <outimage>
logical -lshift <inimage> <outimage> [<n>]
logical -rshift <inimage> <outimage> [<n>]
logical -mask <inimage1> <inimage2> <outimage>
logical -bandc <inimage> <outimage> <c>
logical -borc <inimage> <outimage> <c>
logical -bxorc <inimage> <outimage> <c>
logical -eqc <inimage> <outimage> <c>
logical -nec <inimage> <outimage> <c>
logical -ltc <inimage> <outimage> <c>
logical -lec <inimage> <outimage> <c>
logical -gtc <inimage> <outimage> <c>
logical -gec <inimage> <outimage> <c>
DESCRIPTION
logicalperforms logical operations on images, pixelby pixel, unary and binary operators. The optionspecifies what kind of operator. There should beexactly one option. The following list shows thedefined options, whether unary or binary, and thecorresponding operator. Unary operators requireexactly one input image, binary ones require exactlytwo.
-and binary MIN(input1, input2)
-or binary MAX(input1, input2)
-xor binary input1 xor input2
-not unary not input
-band binary input1 bitwise and input2
-bor binary input1 bitwise or input2
-bxor binary input1 bitwise xor input2
-bnot unary bitwise not input
-eq binary input1 equal input2
-ne binary input1 not equal input2
-lt binary input1 less than input2
-le binary input1 less equal input2
-gt binary input1 greater than input2
-ge binary input1 greater equal input2
-lshift unary left shift input n bits
-rshift unary right shift input n bits
-mask binary if (input2) then input1 else 0
-bandc unary input1 bitwise and constant c
-borc unary input1 bitwise or constant c
-bxorc unary input1 bitwise xor constant c
-eqc unary input1 equal constant c
-nec unary input1 not equal constant c
-ltc unary input1 less than constant c
-lec unary input1 less equal constant c
-gtc unary input1 greater than constant c
-gec unary input1 greater equal constant c
All bands with UNS_BYTE pixels will be processed,assuming (for binary operators) that the band exists inboth images. Only the largest rectangle commmon to eachpair of bands will be processed. For left shift and rightshift, the default value of <n> is 1. For operations withconstant argument <c>, the value of <c> should be anunsigned byte, 0..255.
SEE ALSO
combine(1),
logical(3),
logical_and(3),
logical_or(3),
logical_xor(3),
logical_not(3),
logical_band(3),
logical_bor(3),
logical_bxor(3),
logical_bnot(3),
logical_lshift(3),
logical_rshift(3),
logical_eq(3),
logical_ne(3),
logical_lt(3),
logical_le(3),
logical_gt(3),
logical_ge(3),
logical_mask(3),
logical_bandc(3),
logical_borc(3),
logical_bxorc(3),
logical_eqc(3),
logical_nec(3),
logical_ltc(3),
logical_lec(3),
logical_gtc(3),
logical_gec(3)
RESTRICTIONS
Accepts only unsigned-byte pixels.
AUTHOR
Tor Lønnestad, BLAB, Ifi, UiO
EXAMPLES
logical -mask mona.img mask.img monaface.img
ID
$Id: logical.c,v 1.28 1997/01/09 16:30:39 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- SEE ALSO
- RESTRICTIONS
- AUTHOR
- EXAMPLES
- ID
This document was created byman2html,using the manual pages.