James L. Dean
New member
I've written a C command line program to sharpen images.
Around each pixel in the image, this program calculates the fast 2D discrete cosine transform for the shades of the pixels in a rectangle of a specified size around the given pixel, multiplies the AC components of the transform by a specified value, inverts the 2D DCT, and sets the shade of the given pixel to the resulting shade while preserving the hue of the pixel.
The program handles the grayscale version of the image similar to the way described by "Discrete Cosine Transform for Enhancing the Contrast of Gray Image" by Nivedita V. Deshmukh (Hippalgaonkar) in the International Journal of Novel Research and Development, Volume 10, Issue 4, April 2025.
Here is an example of an image and the output from my program:

I have attached the C source code.
Around each pixel in the image, this program calculates the fast 2D discrete cosine transform for the shades of the pixels in a rectangle of a specified size around the given pixel, multiplies the AC components of the transform by a specified value, inverts the 2D DCT, and sets the shade of the given pixel to the resulting shade while preserving the hue of the pixel.
The program handles the grayscale version of the image similar to the way described by "Discrete Cosine Transform for Enhancing the Contrast of Gray Image" by Nivedita V. Deshmukh (Hippalgaonkar) in the International Journal of Novel Research and Development, Volume 10, Issue 4, April 2025.
Here is an example of an image and the output from my program:

I have attached the C source code.