## NAME

         pseudocol_freq - creates pseudo-color image

## SYNOPSIS

          #include <math.h>
          #include "CVIPimage.h"
          #include "CVIPcolor.h"

         Image * pseudocol_freq(Image *  grayImage,  int  inner,  int
         outer, int blow, int bband, int bhigh)

          <grayImage> - input gray image
          <inner> - low cutoff frequency
          <outer> - high cutoff frequency
          <blow> - map lowpass results to band # (R=0,G=1,B=2)
          <bband> - map bandpass results to band # (R=0,G=1,B=2)
          <bhigh> - map highpass results to band # (R=0,G=1,B=2)
                        (note: blow != bband != bhigh)

## PATH

         $CVIPHOME/COLOR/pseudocol_freq.c

## DESCRIPTION

         This function creates a pseudocolor image from a gray  image
         by frequency domain mapping. The low and high frequency cut-
         offs define three zones on an FFT of the input  image:  low,
         bandpass,  and  high  zone.  Each zone must be mapped to one
         band of an RGB image; no overlap is allowed.

## TYPES AND CONSTANTS

         None

## RETURN VALUES

         Pointer to an RGB image

## HISTORY

         History information recorded: None

## EXAMPLE

          #include <CVIPtoolkit.h>
          #include <CVIPimage.h>
          #include <CVIPdef.h>
          #include <CVIPview.h>
          #include <CVIPconvert.h>
          #include <CVIPcolor.h>
          #define VIEWER "picture"
          #define VIDEO_APP "SunVideo &"

          void main()
          {
          Image *cvipImage;
          IMAGE_FORMAT format;
          char *inputfile,*outputfile;

          setDisplay_Image(VIEWER, "Default");
          /* The input image should be a COLOR one */
          print_CVIP("\n\t\tEnter the  Input File Name:  ");
          inputfile =(char *) getString_CVIP();
          format = getFormat_CVIP(inputfile);
          cvipImage = read_Image(inputfile,1);
          view_Image(cvipImage, inputfile);
          free(inputfile);
          /* the following call creates a pseudocolor image from a
          gray scale image by frequency domain mapping.The low and
          high cutoff frequencies are specified */
          cvipImage=pseudocol_freq(cvipImage,10,100,0,1,2);
          print_CVIP("\n\t\tEnter the Output File Name:  ");
          outputfile = getString_CVIP();
          view_Image(cvipImage,outputfile);
          write_Image(cvipImage,outputfile,CVIP_NO,CVIP_NO,VIP,1);
          free(outputfile);
          }

## SEE ALSO

         libcolor

## AUTHOR

         Copyright (C) 1996 SIUE - by Scott E.  Umbaugh  and  Wenxing
         Li.