## NAME

         raster_deblur_filter - corrects raster-scan error

## SYNOPSIS

          #include <CVIPtoolkit.h>

         Image *raster_deblur_filter(Image *cvip_image)

          <cvip_image> - pointer to an Image structure

## PATH

         $CVIPHOME/SPATIALFILTER/raster_deblur.c

## DESCRIPTION

         This function corrects some raster-scan error.  It  operates
         by replacing the value of every other pixel with the average
         of its two adjacent pixels, first by rows, then by columns.

## TYPES AND CONSTANTS

         None

## RETURN VALUES

         A filtered image

## HISTORY

         History information recorded: None

## EXAMPLE

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

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

          setDisplay_Image(VIEWER, "Default");
          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 corrects raster scan error by
          calling the raster deblurring function */
          cvipImage = raster_deblur_filter(cvipImage);
          print_CVIP("\n\t\tEnter the Output File Name:  ");
          outputfile = getString_CVIP();
          view_Image(cvipImage,outputfile);
          write_Image(cvipImage,outputfile,CVIP_NO,CVIP_NO,format,1);
          free(outputfile);
          }

## SEE ALSO

         libspatialfilter

## AUTHOR

         Copyright (C) 1996 SIUE - by Scott E. Umbaugh and Kun Luo.