53
F.7. CODE LISTINGS FOR CHAPTER 7
459
"\n Sobel Kirsch Prewitt edge detectors"
"\nmedge B in-file out-file threshold (1/0) high type (1,2,3)"
"\n Homogeneity edge detector"
"\nmedge H in-file out-file threshold (1/0) high"
"\n Difference edge detector"
"\nmedge D in-file out-file threshold (1/0) high"
"\n Contrast edge detector"
"\nmedge C in-file out-file threshold (1/0) high"
"\n Range edge detector"
"\nmedge R in-file out-file threshold (1/0) high size(3,5,7...)"
"\n Variance edge detector"
"\nmedge V in-file out-file threshold (1/0) high"
"\n Guassian edge detector"
"\nmedge G in-file out-file threshold (1/0) high size(7 or 9)"
"\n Enhance edges"
"\nmedge E in-file out-file high "
"\n");
} /* ends show_edge_usage */
Listing 6.2 - The medge Program
F.7 Code Listings for Chapter 7
/***********************************************
*
*
file filter.c
*
*
Functions: This file contains
*
filter_image
*
median_filter
*
setup_filters
*
get_filter_options
*
median_of
*
fsort_elements
*
fswap
*
*
Purpose:
*
These functions implement several
*
types of basic spatial frequency
*
filters.
*