Image resizing algorithm (bilinear)
-
Hi, Can someone point me to some sites with a good explanation of the bilinear interpolation algorithm to resample images? My searches give me "features" web pages of graphics packages and libraries that implement it, but nothing that explains it well with some pictures and formulas =). I'm hoping someone with experience can point me to a good website on this matter. What I"m trying to understand is the following quote: "using bilinear interpolation with a pixel spacing of 1.5 in each direction." Thanks.
-
Hi, Can someone point me to some sites with a good explanation of the bilinear interpolation algorithm to resample images? My searches give me "features" web pages of graphics packages and libraries that implement it, but nothing that explains it well with some pictures and formulas =). I'm hoping someone with experience can point me to a good website on this matter. What I"m trying to understand is the following quote: "using bilinear interpolation with a pixel spacing of 1.5 in each direction." Thanks.
Hello Here is an article (the title is "Bicubic", but it's Bilinear): http://astronomy.swin.edu.au/~pbourke/colour/bicubic/[^] The approach is implemented in all libraries I've seen. You can try tool look at Christian's article: http://www.codeproject.com/cs/media/imageprocessing4.asp[^] With best regards, Andrew
-
Hi, Can someone point me to some sites with a good explanation of the bilinear interpolation algorithm to resample images? My searches give me "features" web pages of graphics packages and libraries that implement it, but nothing that explains it well with some pictures and formulas =). I'm hoping someone with experience can point me to a good website on this matter. What I"m trying to understand is the following quote: "using bilinear interpolation with a pixel spacing of 1.5 in each direction." Thanks.
Budric B. wrote: using bilinear interpolation with a pixel spacing of 1.5 in each direction Bilinear interpolation means when you do an operation that theoretically requires a pixel position that is not a whole number, you use the fractional part to work out what percentage of surrounding, actual, pixels to use to determine a colour for the pixel that doesn't really exist. As someone else said, I have an article that explains this further and has C# code showing how it is done. Christian Graus - Microsoft MVP - C++
-
Hi, Can someone point me to some sites with a good explanation of the bilinear interpolation algorithm to resample images? My searches give me "features" web pages of graphics packages and libraries that implement it, but nothing that explains it well with some pictures and formulas =). I'm hoping someone with experience can point me to a good website on this matter. What I"m trying to understand is the following quote: "using bilinear interpolation with a pixel spacing of 1.5 in each direction." Thanks.
-
Budric B. wrote: using bilinear interpolation with a pixel spacing of 1.5 in each direction Bilinear interpolation means when you do an operation that theoretically requires a pixel position that is not a whole number, you use the fractional part to work out what percentage of surrounding, actual, pixels to use to determine a colour for the pixel that doesn't really exist. As someone else said, I have an article that explains this further and has C# code showing how it is done. Christian Graus - Microsoft MVP - C++
Christian Graus wrote: you use the fractional part to work out what percentage of surrounding, actual, pixels to use to determine a colour for the pixel that doesn't really exist that actually applies to nearly all interpolation methods. :) bi-lin just means using linear interpolation in two dimensions. (i know you know this - just filling-in) Cleek | Image Toolkits | Thumbnail maker