Category : Files from Magazines
Archive   : CUJ9302.ZIP
Filename : 1102066A
*
* 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
histogram[i] +
histogram[i+1])/3;
}
for(i=0; i<=GRAY_LEVELS; i++)
histogram[i] = new_hist[i];
} /* ends smooth_histogram */
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/