|
|
Rohan Bernett <rox### [at] yahoocom> wrote:
> Bi-cubic texture filtering -- looks one hell of a lot better than bilinear,
> I can't understand why this hasn't been added yet.
I don't remember the exact algorithm of bicubic filtering, but I faintly
remember that it does not (necessarily) preserve the original colors of the
pixels at the center of the pixels (as for example bilinear filtering does).
This would mean that for example if you have a black image with one white
pixel in the middle, the white pixel would turn into a gray pixel after the
filtering.
Of course this does not mean that a better filtering algorithm could not
be used. There are filtering algorithms which preserve the original colors
of the pixels (or at least get very close) while still looking a lot better
than bilinear filtering.
Here is a set of images zoomed with ImageMagick using different filtering
options (14 in total). You can judge which looks best. (The 'triangle'
filtering is bilinear.)
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|