On 27 Apr., 21:37, jean <[email protected]> wrote:
> A I tried to avoid finding points and aligning
> the images with them as i can reproduce exactly the same shooting pattern
> every time, so i can use a template.
> ...
> I think i found the reason: all images are retated about 0,4 degrees,
> because the join between camera and robotic head is not perfect.
> So: all I need now is a way to tell optimizer to optimize roll of all
> images at once;

If you don't have control points, you can not run the optimizer. But
maybe you just want to set the roll value for all images to the same
value? If that is what you want, go to the images tab, select all
images you want to assign a specific value to, then enter the value in
the appropriate field below and press tab.

> i mean: at the end of the optimization process, all images
> should have the same optimized roll angle.

If you do have control points after all and can therefore use the
optimizer, what you want is to link the roll values for all images. I
think there is no way to do this from the GUI - you can only link y, p
and r together - but it's quite easy to do by editing the pto itself.
Open the pto in a text editor. You'll see 'image' lines like this:

# Image lines
#-hugin cropFactor=1
i Eb1 Eev0 Er1 Ra0 Rb0 Rc0 Rd0 Re0 TrX-0.0158813868512259
TrY-3.42030717529651e-005 TrZ0 Va1 Vb0 Vc0 Vd0 Vm5 Vx0 Vy0 a0 b0 c0 d0
e0 f0 g0 h3510 j0 n"stm_0000.png" p0 r0.184950684791185 t0 v1 w2550 y0

Note how all the values follow immediately behind the tag, e.g. in
this first image line roll is set to 0.184950684791185 by the entry
r0.184950684791185

In the lines following the first, you will notice quite a few entries
which look like *=X.

#-hugin cropFactor=1
i Eb1 Eev0 Er1 Ra=0 Rb=0 Rc=0 Rd=0 Re=0 TrX0 TrY0 TrZ0 Va=0 Vb=0 Vc=0
Vd=0 Vm5 Vx=0 Vy=0 a=0 b=0 c=0 d=0 e=0 f0 g=0 h3510 j0 n"stm_0001.png"
p0 r0.0502361393040408 t=0 v=0 w2550 y0

These entries mean that the value for * is to be the same as in image
X. So for your case, you want all r entries but the first to read r=0,
meaning they should be the same as in the first image for all images.

Once you've done this edit, it will survive even if the pto is now
optimized from the GUI. To achieve the edit automatically, you may
want to enter the realm of panotools scripting.

Kay

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