|
|
Mike Williams <mik### [at] econymdemoncouk> wrote:
> Just for fun, here are some images generated by using the source image as an
> isosurface pigment function.
Here are 3 isos with bicubic interpolation.
They use different coefficients for the interpolation:
image_map
{
png "hf_map.png"
interpolate 3
#local s=2;
#local A=.5; // other two images: A=.7 / A = 1.0 (default)
matrix <(-1-s*A+s)/s, (-s+3*s*A-1)/s, (1-3*s*A+s)/s, (-s+1+s*A)/s,
-1/2/s*(-4-3*s*A+3*s), -1/2/s*(-3*s+9*s*A-2), -1/2/s*(-9*s*A+4+3*s),
-1/2/s*(-3*s+2+3*s*A),
-1/s, 0, 1/s, 0,
1/2-1/2*A, A, 1/2-1/2*A, 0>
}
This code needs my bicubic interpolation patch to work.
Lutz-Peter
Post a reply to this message
Attachments:
Download 'hf_bicubic_05.jpg' (20 KB)
Preview of image 'hf_bicubic_05.jpg'
|
|