## NAME

         and_Image - performs logical AND of two images

## SYNOPSIS

          #include "CVIPtoolkit.h"
          #include "CVIPimage.h"
          #include "CVIPmatrix.h"
          #include "CVIParithlogic.h"
          #include "CVIPdef.h"
          #include "zero_pad.h"

         Image *and_Image(Image *inputImage1,Image *inputImage2)

               <inputImage1> - pointer to an Image structure
               <inputImage2> - pointer to an Image structure

## PATH

         $CVIPHOME/ARITHLOGIC/arithlogic.c

## DESCRIPTION

         This function performs a bitwise AND of two images.  Complex
         data is NOT supported.

## TYPES AND CONSTANTS

         None

## RETURN VALUES

         An ANDed image

## HISTORY

         History information recorded: None

## EXAMPLE

               #include "CVIPtoolkit.h"
               #include "CVIPimage.h"
               #include "CVIPmatrix.h"
               #include "CVIParithlogic.h"
               #include "CVIPdef.h"
               #include "zero_pad.h"

               void main() {
                 Image *inputImage1, *inputImage2, *outputImage;
                 IMAGE_FORMAT format;
                 char *inputfile1, *inputfile2, *outputfile;

                 setDisplay_Image("picture", "Default");

                 print_CVIP("0Enter the first Input File Name:  ");
                 inputfile1 =(char *) getString_CVIP();
                 inputImage1 = read_Image(inputfile1, format, 1);
                 view_Image(inputImage1,inputfile1);
              free(inputfile1);

                 print_CVIP("0Enter the second Input File Name:  ");
                 inputfile2 =(char *) getString_CVIP();
                 inputImage2 = read_Image(inputfile2, format, 1);
                 view_Image(inputImage2,inputfile2);
              free(inputfile2);

              outputImage  =   and_Image(inputImage1,   inputImage2);
              print_CVIP("0Enter the Output File Name:  ");      out-
         putfile                 =                  getString_CVIP();
              view_Image(outputImage,outputfile);
              free(outputfile);

               }

## SEE ALSO

         libarithlogic

## AUTHOR

         Copyright (C) 1996 SIUE - by Scott E. Umbaugh, Jainxin  Tan,
         and  Kun  Luo.  # Revision 1.1  1997/01/29  22:20:01  kcai #
         Initial revision #