bugs: consider a special case of multi-pass registration with limited subsequences.
[Ale.git] / scripts / sko2cpf
blob8d01b2133a35577205d0b0f95349a7329367d6d5
1 #!/usr/bin/perl -w
3 # Copyright 2003, 2004 David Hilvert <dhilvert@auricle.dyndns.org>,
4 # <dhilvert@ugcs.caltech.edu>
6 # This file is part of the Anti-Lamenessing Engine.
8 # The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with Anti-Lamenessing Engine; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 # Script to convert from Sebastian Nowozin's autopano's showtwo.exe stdout
24 # output to ALE's CPF control point file format.
27 print "V 0\n";
29 while (<>) {
30 /^\((\d+),(\d+)\) \((\d+),(\d+)\)/ or next;
32 print "A $1 $2 $3 $4\n";