I am using align_image_stack to align 2 images for processing into a 3D image.
There is documentation https://wiki.panotools.org/Align_image_stack but the page states that ““This article is incomplete. You can help Panotools Wiki by expanding it.”
The descriptions are brief and I’m not sure I completely understand them all. It is not clear which options are mutually exclusive.
I’ve added speculative explanations to that table and below it added another with speculations about the relationships between the parameters. I would appreciate having explanations added where they are missing and errors corrected
If I get some clear answers, they could be useful for updating the wiki page.
I am using align_image_stack to align 2 images for processing into a 3D image.
There is documentation https://wiki.panotools.org/Align_image_stack but the page states that ““This article is incomplete. You can help Panotools Wiki by expanding it.”
The descriptions are brief and I’m not sure I completely understand them all. It is not clear which options are mutually exclusive.
---------------------
Modes of operation:---------------------
---------------------
---------------------
---------------------
Modifiers:---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
---------------------
======================================================================
Group/Probable Relationship/Parameters/Function
1x
Mutually exclusive
-p or -o
Output file(s)
---------------------
2x
Mutually exclusive
-A or -P
-S?
--use-given-order
Stereo image type
It’s not clear whether -S must be used when -A or -P is, or whether it will be included automatically when -A or -P is.
What is the difference between -A and -S?
---------------------
3x
Mutually exclusive
-d -i -x -y -z
Which coordinate to optimise?
---------------------
4x
Mutually exclusive
-e -l
Image geometry
What’s the point of -l if the default is rectilinear?
---------------------
5+
If -g is used, -c must be used too to supply num
-c -g
Affect precision.
---------------------
6x
Mutually exclusive?
-t --corr
Affect precision
What’s the difference between -t and -corr?
---------------------
-
Unrelated to other parameters
-p -v -h
-f -C -s --gpu
--distortion
Tools
Various
-v Verbose, print progress messages. Repeat for higher verbosity-----Does “Repeat…” mean that -v -v would output more details than -v?
-l Assume linear input files-----Parameter-e states “(default: rectilinear)”.So isn’t this parameter redundant? Or does it mean something else?
--distortion Try to load distortion information from lens database-----Presumably if data is available, AIS uses it to try to compensate for the distortion. What happens if there is none or it’s invalid?
--use-given-order Use the image order as given on the command line. (By default images will be sorted by exposure values.)-----Does not affect 3D processing as images are identified as right and left by their order on the command line?
--gpu Use GPU for remapping-----What happens if there’s no GPU or it’s unsuitable?
1x
Mutually exclusive
-p or -o
Output file(s)
2xMutually exclusive
-A or -P
-S?
Stereo image type
It’s not clear whether -S must be used when -A or -P is, or whether it will be included automatically when -A or -P is.
What is the difference between -A and -S?
3xMutually exclusive
-d -i -x -y -z
Which coordinate to optimise?
4xMutually exclusive
-e -l
Image geometry
What’s the point of -l if the default is rectilinear?
Great! The webpage is far more informative now, putting it into sections helps a lot.
I’m only
interested in 3D image processing, but I’ve had a look at all the
options in case they might be relevant and I hope my further
questions might help someone else. I'll look at the 3D ones later.
...This implies also the --use-given-order option.
Does this mean
“Assumes you have also used –use-given-order.” If so, what would happen if you hadn’t?
Or
“This will also set/activate/turn-on the -use-given-order option.”
---------------------------------------------------------------
---------------------------------------------------------------
i assume that the value of -num comes from -c num if it is set, otherwise it is the default of 8 mentioned in that section.
---------------------------------------------------------------
Optimisation phase
How do “(yaw, pitch and roll) “ relate to x, y,z?
---------------------------------------------------------------
I assume one might as well always set all of -m -d -i -x -y -z in order to optimise everything . Unless you mean prioritise, in which case:
All of them will be optimised, but -X will be prioritised.
Or
-X will be optimised, the rest ignored.
Great! The webpage is far more informative now, putting it into sections helps a lot.
I’m only interested in 3D image processing, but I’ve had a look at all the options in case they might be relevant and I hope my further questions might help someone else. I'll look at the 3D ones later.
--align-to-first
...This implies also the --use-given-order option.
If neither is available what happens?
-l Assume linear input files are in linera colour space.Is the default gamma colour space?
Optimisation phaseHow do “(yaw, pitch and roll) “ relate to x, y,z?
-m -d -i -x -y -z Optimize field of view
I assume one might as well always set all of -m -d -i -x -y -z in order to optimise everything .
--align-to-first
…This implies also the --use-given-order option.
To me as a native English speaker this is ambiguous but probably means:
“This means you must also use the –use-given-order option.”
If so, what would happen if you hadn’t?
But I suspect the intended meaning might have been
“This also sets/activates/turns-on the --use-given-order option.”
Looks like an option best avoided due to uncertainty about what it does.
------------------------------------------------
--distortion Hopefully if there is no distortion information or it’s invalid, this process is not performed – rather than the program going into an endless loop or aborting.
I won’t use this option as I don’t want to risk the program hanging or aborting.
------------------------------------------------
-g gsize
Break image into a rectangular grid (gsize x gsize) and attempt to find num control points in each section (default: 5 [5x5 grid+)
Should I assume that the value of num comes from -c num if that option is used, otherwise it is the default of 8 mentioned under -c?
I won’t use this option as I don’t want to risk the program hanging or aborting if my assumptions about num are incorrect.
------------------------------------------------
Optimisation phase
I assume x means adjustment along the horizontal pitch axis, y to adjustment on the vertical yaw axis and z to adjustment on the “out of the window” roll axis.
Shouldn’t it be “Optimize correction of radial distortion”?
------------------------------------------------
--gpu Since there is no information about what might happen if the GPU was unsuitable or missing (I have a GPU so can’t test that), I won’t use this option as I don’t want to risk the program hanging or aborting.
That's it with the questions :)/On Wednesday, 17 April 2024 at 23:39:07 -0700, Chris wrote:T.Modes, Wie du sicher weißt, bedeutet das deutsche Wort "Gift" etwas ganz anderes als das englische Wort "gift" :). Vielleicht sind die Worte "impliziert" und "implies" falsche Freunde - sie haben etwas unterschiedliche Bedeutungen. (As I am sure you are aware, the German word "Gift" means something quite different to the English word "gift" :). Perhaps the words "impliziert" and "implies" are false friends - they have rather different meanings.) On Wednesday, April 17, 2024 at 7:33:51 AM UTC+1 Chris wrote:Chris, I've seen a lot of messages from you. This one seems to be the second one with identical content. And most of them seem to have nothing to do with the software. If you feel that you have to attack T.Modes, please do it privately.