Category : Files from Magazines
Archive   : CUJ9201.ZIP
Filename : 1001060A

 
Output of file : 1001060A contained in archive : CUJ9201.ZIP

case 8: /* perform edge detection */
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_edge_options(&detect_type, &detect_threshold,
&high, &size);
if(detect_type == 1 ||
detect_type == 2 ||
detect_type == 3)
detect_edges(name, name2, the_image, out_image,
il, ie, ll, le, detect_type,
detect_threshold, high);
if(detect_type == 4)
quick_edge(name, name2, the_image, out_image,
il, ie, ll, le, detect_threshold,
high);
if(detect_type == 5)
homogeneity(name, name2, the_image, out_image,
il, ie, ll, le, detect_threshold,
high);
if(detect_type == 6)
difference_edge(name, name2, the_image, out_image,
il, ie, ll, le, detect_threshold,
high);
if(detect_type == 7)
contrast_edge(name, name2, the_image, out_image,
il, ie, ll, le, detect_threshold,
high);
if(detect_type == 8)
gaussian_edge(name, name2, the_image, out_image,
il, ie, ll, le, size,
detect_threshold, high);
break;

case 9: /* edge enhancement */
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);
printf("\nCIPS>> Enter high threshold parameter");
printf(" \n\t___\b\b\b");
get_integer(&high);
enhance_edges(name, name2, the_image, out_image,
il, ie, ll, le, high);
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\t20. Exit system");
printf("\n\nEnter choice _\b");

} /* ends show_menu */

/* End of File */