Category : Files from Magazines
Archive   : CUJ9306.ZIP
Filename : 1106084A

 
Output of file : 1106084A contained in archive : CUJ9306.ZIP
/*******************************************
*
* erode_image_array(..
*
* This function erodes pixels. If a pixel
* equals value and has more than threshold
* neighbors equal to 0, then set that
* pixel in the output to 0.
*
*******************************************/

erode_image_array(the_image, out_image,
value, threshold)
short the_image[ROWS][COLS],
out_image[ROWS][COLS],
threshold,
value;
{
int a, b, count, i, j, k,
length, width;

/***************************
*
* Loop over image array
*
****************************/

for(i=0; i for(j=0; j out_image[i][j] = the_image[i][j];

printf("\n");

for(i=1; i if( (i%10) == 0) printf("%3d", i);
for(j=1; j if(the_image[i][j] == value){
count = 0;
for(a=-1; a<=1; a++){
for(b=-1; b<=1; b++){
if(the_image[i+a][j+b] == 0)
count++;
} /* ends loop over b */
} /* ends loop over a */
if(count > threshold) out_image[i][j] = 0;
} /* ends if the_image == value */
} /* ends loop over j */
} /* ends loop over i */

} /* ends erode_image_array */



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9306.ZIP
Filename : 1106084A

  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/