Image:Lanczos-kernel.svg

From Wikipedia, the free encyclopedia

Lanczos-kernel.svg (SVG file, nominally 400 × 600 pixels, file size: 40 KB)

[edit] Краткое описание

Description

Lanczos kernels for a=2,3

Source

self-made

Date

10 May 2008

Author

Zapparello (talk)

Permission
(Reusing this image)

See below.

Other versions Image:Lanczos.gif

[edit] Licensing:


I, the copyright holder of this work, hereby publish it under the following licenses:
You may select the license of your choice.

[edit] Source code:

I decided to put the Octave source code which was used to generate the SVG file, in the cause somebody will want to change something in it, and it's small.

#!/usr/bin/octave -q
 
function f=lanczos2(x)
    f = sinc (x) .* sinc (x ./ 2);
end
 
function f=lanczos3(x)
    f = sinc (x) .* sinc (x ./ 3);
end
 
figure;
subplot (211);
hold on;
title ("Lanczos kernel for a=2");
 
x = -2:0.01:2;
y = -0.11:0.01:1.01;
 
plot (x, zeros (1, length (x)), "k");
plot (zeros (1, length (y)), y, "k");
 
plot (x, lanczos2 (x), "r");
 
subplot (212);
hold on;
title ("Lanczos kernel for a=3");
 
x = -3:0.01:3;
y = -0.11:0.01:1.01;
 
plot (x, zeros (1, length (x)), "k");
plot (zeros (1, length (y)), y, "k");
 
plot (x, lanczos3 (x), "r");
 
drawnow ();
print ("lanczos-kernel.svg", "-dsvg", "-S400,600");

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current13:52, 10 May 2008400×600 (40 KB)Zapparello (Talk | contribs) ({{Information |Description=Lanczos kernels for a=2,3 |Source=self-made |Date=10 May 2008 |Author=~~~ |other_versions=Image:Lanczos.gif }})

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):