/[opencvs]/eyes/heart_blocks.pl
ViewVC logotype

Contents of /eyes/heart_blocks.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Tue Oct 18 03:31:35 2011 UTC (6 years, 6 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
intermediary where the sin and square root are done with a lookup table.
It ran slower!
1 $centerx=63360;
2 $sizex=$centerx;
3 $centery=63360/2;
4 $sizey=$centery;;
5 $width = 1440;
6 $height = 1440;
7 $i = 0;
8 $threshold=0.5;
9
10 for ($x = $centerx-$sizex;$x <= $centerx+$sizex;$x = $x + $width) {
11 $j = 0;
12
13 for ($y = $centery-$sizey; $y <= $centery+$sizey; $y = $y + $height) {
14 $tox = $x + $width;
15 $toy = $y + $height;
16 $fname = sprintf("ht_%03d_%03d.fp",$i,$j);
17 print "nice build_double heart_hologram.txt 56 126720 63360 2880 1440 $x $tox $y $toy 1 0 >u/$fname\n";
18 $j++;
19 }
20 $i++;
21 }

  ViewVC Help
Powered by ViewVC 1.1.5