Listing 2 Additions to the main program in the Image Processing System to integrate filtering capabilities

                .
                .
                .

      case 10: /* perform image filtering */
         printf("\nCIPS> Enter input image name\n");
         get_image_name(name);
         printf("\nCIPS> Enter output image name\n");
         get_image_name(name2);
         get_parameters(&il, &ie, &ll, &le);
         get_filter_options(&filter_type, low_high);
         if(low_high[0] == 'l' ||
            low_high[0] == 'L' ||
            low_high[0] == 'h' ||
            low_high[0] == 'H'){
           setup_filters(filter_type, low_high,
                                   low_hi_filter);
           filter_image(name, name2, the_image,
                                      out_image,
                      il, ie, ll, le,
                      low_hi_filter, filter_type);
         }

         if(low_high[0] == 'm' ||
            low_high[0] := 'M')
             median_filter(name, name2, the_image,
                                      out_image,
                         il, ie, ll, le,
                                      filter_type);

      break;

                .
                .
                .

  /**************************************************
  *
  *   show_menu(..
  *
  *   This function displays the CIPS main menu.
  *
   *************************************************/

show_menu()
{

      printf("\n\n\nWelcome to CIPS");
      printf("\nThe C Image Processing System");
      printf("\nThese are you choices:\n");
      printf("\n\t1. Display image header");
      printf("\n\t2. Show image numbers");
      printf("\n\t3. Print image numbers");
      printf("\n\t4. Display image (VGA & EGA only)");
      printf("\n\t5. Display or print image using
                                      halftoning");
      printf("\n\t6. Print graphics image using
                                      dithering");
      printf("\n\t7. Print or display histogram
                                      numbers");
      printf("\n\t8. Perform edge detection");
      printf("\n\t9. Perform edge enhancement");
      printf("\n\t10. Perform image filtering");
      printf("\n\t20. Exit system");
      printf("\n\nEnter choice _\b");

}   /* ends show_menu */
/* End of File */