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

 
Output of file : 1001061A contained in archive : CUJ9201.ZIP
/***********************************************
*
* get_edge_options(...
*
* This function queries the user for the
* parameters need to perform edge
* detection.
*
***********************************************/


get_edge_options(detect_type, threshold, high, size)
int *detect_type, *high, *size, *threshold;
{
int not_finished, response;
not_finished = 1;
while(not_finished){

printf("\nThe Edge Detector options are:\n");
printf("\n\t1. Type of edge detector is %d", *detect_type);
printf("\n\t (recall 1=Prewitt 2=Kirsch");
printf("\n\t 3=Sobel 4=quick");
printf("\n\t 5=homogeneity 6=difference");
printf("\n\t 7=contrast 8=gaussian");
printf("\n\t2. Threshold output is %d (0=off 1=on)",
*threshold);
printf("\n\t3. High threshold is %d", *high);
printf("\n\t4. Size is %d (gaussian only)", *size);
printf("\n\nEnter choice (0 = no change) _\b");


get_integer(&response);

if(response == 0){
not_finished = 0;
}


if(response == 1){
printf("\n\nEnter type of edge detector");
printf("\n\t (recall 1=Prewitt 2=Kirsch");
printf("\n\t 3=Sobel 4=quick");
printf("\n\t 5=homogeneity 6=difference");
printf("\n\t 7=contrast 8=gaussian");
printf("\n _\b");
get_integer(detect_type);
}

if(response == 2){
printf("\n\nEnter threshold output (0=off 1=on)");
printf("\n _\b");
get_integer(threshold);
}

if(response == 3){
printf("\n\nEnter high threshold");
printf("\n _\b");

get_integer(high);
}

if(response == 4){
printf("\n\nEnter size for gaussian (7 or 9)");
printf("\n _\b");
get_integer(size);
}
} /* ends while not_finished */

} /* ends get_edge_options */
/* End of File */



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9201.ZIP
Filename : 1001061A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/