I want to know which algorithm is the best that can be used to reduce the bitmap. With the best, I mean the one that gives the most beautiful results. I know about bicubic, but is there anything else? For example, I heard from some people that Adobe Lightroom has some kind of proprietary algorithm that gives better results than the standard bicubic that I used. Unfortunately, I would like to use this algorithm on my own in my software, so Adobe will not make carefully guarded trade secrets.
Added:
I checked Paint.NET and, to my surprise, it seems that Super Sampling is better than bicubic when reducing image size. This makes me wonder if interpolation algorithms can even go.
He also reminded me of an algorithm that I “invented” myself, but was never implemented. I suppose he also has a name (somehow this trivial cannot be my thought), but I could not find it among the popular ones. Supersampling was the closest.
The idea is that for each pixel in the target image, calculate where it will be in the original image. It will probably overlay one or more other pixels. Then it would be possible to calculate the area and color of these pixels. Then, to get the color of the target pixel, you can simply calculate the average of these colors by adding their areas as “weights”. So, if the target pixel would cover 1/3 of the yellow pixel of the source and 1/4 of the green pixel of the source, I would get (1/3 * yellow + 1/4 * green) / (1/3 + 1/4).
This, of course, will be intensively calculated, but it should be as close to the ideal as possible, no?
Is there a name for this algorithm?
algorithm image resize
Vilx- Dec 21 '08 at 21:40 2008-12-21 21:40
source share