On Mon 18-Jan-2010 at 02:13 -0800, Thomas wrote:
I'm happy that you support my idea. To illustrate exactly what I
want and what makes sense, I'd need the "distance" column which is
in the control points list in text format (no drag and drop
possible and not in the .pto-file).
If you can install the Panotools::Script perl module, this script
will take a .pto project and dump to CSV all the control points +
the error distance in pixels:
#!/usr/bin/perl
use Panotools::Script;
my $pto = new Panotools::Script;
$pto->Read (shift);
for my $c (@{$pto->Control})
{
print STDOUT join ', ',
$c->{n}, $c->{N},
$c->{x}, $c->{y},
$c->{X}, $c->{Y},
$c->{t}, $c->Distance ($pto) ."\n";
}
...though I'm not entirely sure this is what you asked for, here is
another script that will dump to CSV the angular distances between
every possible pair of photos:
#!/usr/bin/perl
use Panotools::Script;
my $pto = new Panotools::Script;
$pto->Read (shift);
for my $n (0 .. scalar @{$pto->Image} -1)
{
for my $N (0 .. scalar @{$pto->Image} -1)
{
print STDOUT join ', ',
$n, $N, $pto->AngularDistance ($n, $N) ."\n";
}
}
--
Bruno
--
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx