Thomas,

On Tuesday, 2019-03-19 08:41:22 -0700, you wrote:

> ...
> Am Freitag, 15. März 2019 18:40:56 UTC+1 schrieb Rainer Woitok:
> > ...
> > Any pointers to the concepts  behind the terms  "lens" and "stack" would 
> > be heartily appreciated. 

These pointers are still missing.  Isn't there any technical or theoret-
ical documentation  of the concepts  used in Hugin?   How can developers
manage such a project  without documentation  of the underlying princip-
les?

> >
> ...
> For scanned images this lens concept is not so good. So you would like to 
> optimize the field of view for each individual image. This can be achieved 
> by assigning each image an own lens or by unlink the fov parameter of this 
> lens (pto_var --unlink v0).

The latter approach seems cheaper from a programmer's point of view, be-
cause the former requires  to dynamically generate the  "i1,...,in" list
from the number of input images.   But are you going to say the I should
add "v,!v0" to the list of variables to be optimized?

> For stacks this is analog done for the image positions.

Since I still have no idea what "stack" refers to when talking about Hu-
gin, I cannot make anything from this statement.  Sorry.

However, I fooled a bit around with the command

   pto_gen --fov 10 --projection=0 -o x.pto *.tif

When I provide two input files, "pto_gen" prints

   Generating pto file...
   Reading .../.0010.tif...
   Reading .../.0020.tif...

   Assigned 1 lenses.

And the PTO file contains

   # hugin project file
   #hugin_ptoversion 2
   p f2 w3000 h1500 v360  E0 R0 n"TIFF_m c:LZW r:CROP"
   m g1 i0 f0 m2 p0.00784314

   # image lines
   #-hugin  cropFactor=1
   i w2552 h3508 f0 v10 Ra0 Rb0 Rc0 Rd0 Re0 Eev0 Er1 Eb1 r0 p0 y0 TrX0 TrY0 
TrZ0 Tpy0 Tpp0 j0 a0 b0 c0 d0 e0 g0 t0 Va1 Vb0 Vc0 Vd0 Vx0 Vy0  Vm5 
n".../.0010.tif"
   #-hugin  cropFactor=1
   i w2552 h3508 f0 v=0 Ra=0 Rb=0 Rc=0 Rd=0 Re=0 Eev0 Er1 Eb1 r0 p0 y0 TrX0 
TrY0 TrZ0 Tpy0 Tpp0 j0 a=0 b=0 c=0 d=0 e=0 g=0 t=0 Va=0 Vb=0 Vc=0 Vd=0 Vx=0 
Vy=0  Vm5 n".../.0020.tif"

Mind the "v10" for the first image and the "v=0" for the second.  When I
provide three input files, "pto_gen" prints

   Generating pto file...
   Reading .../.0010.tif...
   Reading .../.0020.tif...
   Reading .../.0030.tif...

   Assigned 2 lenses.
   Project contains more than one lens, but you requested to assign
   stacks. This is not supported. Therefore stacks will not be
   assigned.

And the PTO file contains

   # hugin project file
   #hugin_ptoversion 2
   p f2 w3000 h1500 v360  E0 R0 n"TIFF_m c:LZW r:CROP"
   m g1 i0 f0 m2 p0.00784314

   # image lines
   #-hugin  cropFactor=1
   i w2552 h3508 f0 v10 Ra0 Rb0 Rc0 Rd0 Re0 Eev0 Er1 Eb1 r0 p0 y0 TrX0 TrY0 
TrZ0 Tpy0 Tpp0 j0 a0 b0 c0 d0 e0 g0 t0 Va1 Vb0 Vc0 Vd0 Vx0 Vy0  Vm5 
n".../.0010.tif"
   #-hugin  cropFactor=1
   i w2552 h3508 f0 v=0 Ra=0 Rb=0 Rc=0 Rd=0 Re=0 Eev0 Er1 Eb1 r0 p0 y0 TrX0 
TrY0 TrZ0 Tpy0 Tpp0 j0 a=0 b=0 c=0 d=0 e=0 g=0 t=0 Va=0 Vb=0 Vc=0 Vd=0 Vx=0 
Vy=0  Vm5 n".../.0020.tif"
   #-hugin  cropFactor=1
   i w2480 h3508 f0 v10 Ra0 Rb0 Rc0 Rd0 Re0 Eev0 Er1 Eb1 r0 p0 y0 TrX0 TrY0 
TrZ0 Tpy0 Tpp0 j0 a0 b0 c0 d0 e0 g0 t0 Va1 Vb0 Vc0 Vd0 Vx0 Vy0  Vm5 
n".../.0030.tif"

Again the second image has "v=0" while the value for the first and third
image is correct.   This odd value will  only be corrected  when I issue
either of the commands  "pto_var --unlink v0"  or  "pto_lensstack --new-
lens i1,i2".  Is this expected behaviour?

And there is one other point where the second of three images is treated
differently.  I had specified to optimize variables "r,p,y,d,e,g,t", ex-
cept for the first image, but the PTO file only contains

   # specify variables that should be optimized
   v r1
   v p1
   v y1
   v r2
   v p2
   v y2
   v d2
   v e2
   v g2
   v t2
   v

Why are "d1", "e1", "g1", and "t1" not optimized?

> PS: Current Hugin version contains also an user-defined assistant for 
> scanned images.

Well,  I'm on  Hugin 2015.0.0.   Does this version  already contain this
assistant, and if yes, where do I find it?  But I would prefer a command
line solution over a GUI.

Sincerely,
  Rainer

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/23698.29770.289399.358682%40woitok.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to