Jarda,

I've been using the following script for some time. It adds my
camera's lens parameters to a .pto file generated by
autopano-c-complete.sh.

Run:
$ add_lens.pl a.pto > a_mod.pto; hugin a_mod.pto

---------------- add_lens.pl -------------------------------------
#!/usr/bin/env perl

use strict;
use warnings;

my $default_lens='a0 b-0.01 c0';
my $my_lens = 'a0.007805 b-0.026346 c0.0001';

my $default_fl='v\d+';
my $my_fl = 'v51.3509';


while (<>) {
    die "not a pto file" unless /hugin project file|Panotools/i;
    print;
    last;
}

my $first_pic = 1;
while (<>) {
    if ($first_pic && /^i /) {
        s/$default_lens/$my_lens/;
        s/$default_fl/$my_fl/;
        $first_pic = 0;
    }
    print;
}
-----------------------------------------------------

2008/10/24 Jaroslav.Beran <[EMAIL PROTECTED]>:
>
> Thank you, Stephan, for very usefull links - I was in doubt, how to
> calculate sensor diagonal, because in manual is only 1/2.5", and not
> both sides of rectangle in mm.
> Jaroslav
>
> On 24 Říj, 04:50, Stephan Hegel <[EMAIL PROTECTED]> wrote:
>> Hi Jaroslav,
>>
>> Jaroslav.Beran wrote:
>> > anybody knows where can I get lens data for Olympus C-765 UZ? There is
>> > no HFOV in EXIF, and I need to enter it manually after images are
>> > loaded. I hope that if Hugin will have lens data, this annoying dialog
>> > will not pop-up.
>>
>> Camera data can be found here:
>>    http://www.dpreview.com/reviews/specs/Olympus/oly_c765uz.asp
>> This might be helpful to calculate your HFOV:
>>    http://www.dpreview.com/learn/?/key=focal%20length
>>
>> You still have to remember your zoom settings when taking the
>> pictures 'cause the camera can be operated from 38 to 380mm.
>>
>> Rgds,
>>   Stephan.
> >
>



-- 
   -Heikki
Heikki Lehvaslaiho - heikki lehvaslaiho gmail com
http://kapkaupunki.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to