home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_10 / 1010091a < prev    next >
Text File  |  1992-08-11  |  2KB  |  65 lines

  1.                     .
  2.                     .
  3.                     .
  4.  
  5.         case 10: /* perform image filtering */
  6.            printf("\nCIPS> Enter input image name\n");
  7.            get_image_name(name);
  8.            printf("\nCIPS> Enter output image name\n");
  9.            get_image_name(name2);
  10.            get_parameters(&il, &ie, &ll, &le);
  11.            get_filter_options(&filter_type, low_high);
  12.            if(low_high[0] == 'l' ||
  13.                low_high[0] == 'L' ||
  14.                low_high[0] == 'h' ||
  15.                low_high[0] == 'H'){
  16.               setup_filters(filter_type, low_high, low_hi_filter);
  17.               filter_image(name, name2, the_image, out_image,
  18.                            il, ie, ll, le, 
  19.                            low_hi_filter, filter_type);
  20.            }
  21.  
  22.            if(low_high[0] == 'm' ||
  23.                low_high[0] == 'M')
  24.                  median_filter(name, name2, the_image, out_image,
  25.                                il, ie, ll, le, filter_type);
  26.  
  27.          break;
  28.  
  29.                    .
  30.                    .
  31.                    .
  32.  
  33.  
  34.    /******************************************************
  35.    *
  36.    *   show_menu(..
  37.    *
  38.    *   This function displays the CIPS main menu.
  39.    *
  40.      ****************************************************/
  41.  
  42. show_menu()
  43. {
  44.  
  45.         printf("\n\n\nWelcome to CIPS");
  46.         printf("\nThe C Image Processing System");
  47.         printf("\nThese are you choices:\n");
  48.         printf("\n\t1.  Display image header");
  49.         printf("\n\t2.  Show image numbers");
  50.         printf("\n\t3.  Print image numbers");
  51.         printf("\n\t4.  Display image (VGA & EGA only)");
  52.         printf("\n\t5.  Display or print image using halftoning");
  53.         printf("\n\t6.  Print graphics image using dithering");
  54.         printf("\n\t7.  Print or display histogram numbers");
  55.         printf("\n\t8.  Perform edge detection");
  56.         printf("\n\t9.  Perform edge enhancement");
  57.         printf("\n\t10. Perform image filtering");
  58.         printf("\n\t20. Exit system");
  59.         printf("\n\nEnter choice _\b");
  60.  
  61.  
  62. }    /* ends show_menu */
  63. /* End of File */
  64.  
  65.