
vand(1)                      Khoros                       vand(1)

PROGRAM
     vand - Logically AND two images pixel by pixel.

SYNTAX
     vand

     -i1            first input image

     -i2            second input image

     -o             resulting output image

     [-V]           Gives the version for vand

     [-U]           Gives the usage for vand

     [-P]           Prompts for command line options

     [-A [file1]]   Creates the answer file called vand.ans or
                    file1

     [-a [file1]]   Uses vand.ans or file1 as the answer file

DESCRIPTION
     vand logically ANDs two images pixel by pixel.

     For each corresponding pair of pixels from the input images,
     the corresponding output pixel is assigned the value of the
     first input image if both input pixels are not zero.  If one
     of the pixels is zero, the output pixel will be zero.

     The input images may be of the same or different data types.
     If the input images are of different data types, then both
     input images will be upcast to the highest input image data
     type.  The output image data type will be the same as that
     of the highest data type of the input images.

REQUIRED ARGUMENTS
     -i1    type: infile
            desc: first input image

     -i2    type: infile
            desc: second input image

     -o     type: outfile
            desc: resulting output image

OPTIONAL ARGUMENTS
     none

EXAMPLES
     vand -i1 input.image1 -i2 input.image2 -o output.image

     This command logically ANDs input.image1 with input.image2
     and stores the result in output.image.

SEE ALSO
     intro(1), verror(3), vgparms(3), vutils(3), lvand(3)
     vcast(1)

RESTRICTIONS
     vand will not operate on (transform) data storage type input
     files.

COPYRIGHT
     Copyright 1991, University of New Mexico.  All rights
     reserved.

Khoros                    Release: 1.0                          1

