File:Shepard interpolation.png
Summary
| Description |
English: Shepard's interpolation method for different values of the power parameter p. |
| Source | Own work |
| Author | Hankwang |
Licensing
| I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
- Data generation (perl)
#!/usr/bin/perl -w
$n=40;
$p=0.1;
srand(6);
for ($i = 0; $i < $n; ++$i) {
$x = rand(1);
$y = rand(1);
$v = (rand(1) < $p) ? 1 : 0;
print("$x $y $v\n");
}
Category:Interpolation
Category:Images with Perl source code