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

Contents of /eyes/ben_blocks.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Mon Sep 12 04:09:26 2011 UTC (6 years, 10 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
File MIME type: text/plain
z
1 $centerx=9450/4;
2 $centery=12600/4;
3 $sizex=9450/4;
4 $sizey=12600/4;
5
6
7 $width = 600;
8 $height = 600;
9 $i = 0;
10 $threshold=0.5;
11
12 for ($y = $centery-$sizey; $y < $centery+$sizey; $y = $y + $height) {
13 $j = 0;
14
15 for ($x = $centerx-$sizex;$x < $centerx+$sizex;$x = $x + $width) {
16 $tox = $x + $width;
17 $toy = $y + $height;
18 $fname = sprintf("es_%03d_%03d.png",$i,$j);
19 print "build_greya eye_source.txt 102 12600 9450 600 600 $x $tox $y $toy | convert txt: u/$fname\n";
20 $j++;
21 }
22 $i++;
23 }

  ViewVC Help
Powered by ViewVC 1.1.5