Category : Files from Magazines
Archive   : CUJ9302.ZIP
Filename : 1102066A

 
Output of file : 1102066A contained in archive : CUJ9302.ZIP
/********************************************
*
* smooth_histogram(...
*
* This function smoothes the input histogram
* and returns it. It uses a simple averaging
* scheme where each point in the histogram
* is replaced by the average of itself and
* the two points on either side of it.
*
*********************************************/

smooth_histogram(histogram)
unsigned long histogram[];
{
int i;
unsigned long new_hist[GRAY_LEVELS+1];

zero_histogram(new_hist);

new_hist[0] = (histogram[0] + histogram[1])/2;
new_hist[GRAY_LEVELS] =
(histogram[GRAY_LEVELS] +
histogram[GRAY_LEVELS-1])/2;

for(i=1; i new_hist[i] = (histogram[i-1] +
histogram[i] +
histogram[i+1])/3;
}

for(i=0; i<=GRAY_LEVELS; i++)
histogram[i] = new_hist[i];

} /* ends smooth_histogram */



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9302.ZIP
Filename : 1102066A

  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/