From: <bru...@us...> - 2013-01-31 21:31:30
|
Revision: 1356 http://panotools.svn.sourceforge.net/panotools/?rev=1356&view=rev Author: brunopostle Date: 2013-01-31 21:31:23 +0000 (Thu, 31 Jan 2013) Log Message: ----------- Allow setting XYZ translation parameters in CSV file Modified Paths: -------------- trunk/Panotools-Script/bin/match-n-shift Modified: trunk/Panotools-Script/bin/match-n-shift =================================================================== --- trunk/Panotools-Script/bin/match-n-shift 2013-01-29 21:20:58 UTC (rev 1355) +++ trunk/Panotools-Script/bin/match-n-shift 2013-01-31 21:31:23 UTC (rev 1356) @@ -91,6 +91,9 @@ $image->{y} = $csv[$id]->[1] if (defined $csv[$id] and defined $csv[$id]->[1]); $image->{p} = $csv[$id]->[2] if (defined $csv[$id] and defined $csv[$id]->[2]); $image->{r} = $csv[$id]->[3] if (defined $csv[$id] and defined $csv[$id]->[3]); + $image->{TrX} = $csv[$id]->[4] if (defined $csv[$id] and defined $csv[$id]->[4]); + $image->{TrY} = $csv[$id]->[5] if (defined $csv[$id] and defined $csv[$id]->[5]); + $image->{TrZ} = $csv[$id]->[6] if (defined $csv[$id] and defined $csv[$id]->[6]); if ($photos_all->Bracketed) { @@ -224,6 +227,13 @@ DSC_0003.JPG,180,20,90 DSC_0004.JPG,-180,-20,90 +..or optionally specify XYZ translation parameters as well: + + DSC_0001.JPG, 0, 20, 0, 0.5, 0.0, 1.0 + DSC_0002.JPG, 0, 20, 0, 1.4, 0.0, 1.0 + DSC_0003.JPG, 0, 20, 0, 2.3, 0.0, 1.0 + DSC_0004.JPG, 0, 20, 0, 3.2, 0.0, 1.0 + If the roll field is ommitted then it will be set to zero or any value obtainable from EXIF data, similarly if the pitch field is ommitted then pitch will be set to zero. So this should also work: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |