Problem stitching portrait shoots [test case included]

170 views
Skip to first unread message

ArAgost

unread,
Feb 16, 2008, 7:16:30 AM2/16/08
to hugin and other free panoramic software
I don't know if it's something wrong in my workflow, or something
wrong with hugin, so I didn't already file a bug.
If I load some shots (Nikon D70, portrait orientation, auto rotation
option set to ON on the camera), Hugin loads them, aligns them
correctly but apparently ignores it. (problem persists with or witouth
--align)
Images are shown wrongly oriented in the "images" tab, erraticly
oriented on the control points tab (I've seen +0°, +90°, +180°,
depending on the case), and generates a very strangely oriented (but
still correct, in a technical manner) panorama. Of course, one could
say that I should just recenter panorama and horizon, but this is
difficult to do precisely, and if there are many images the horizon
gets wobbly, and the straighten button brings back the wrong pano. It
appears as if instead of an horizontal row of vertical shots, it gets
interpreted as a vertical row of horizontal shots, or something like
this.
If anybody could *pleeeease* try it and help me understand where's the
catch, here are the files:
http://www.mukkarasta.it/altro/Archivio.zip

And here's a project file (made with Hugin OS X 2851):
http://www.mukkarasta.it/altro/DSC_6198-DSC_6200.pto


Thanks in advance,

A.

Harry van der Wolf

unread,
Feb 16, 2008, 8:09:07 AM2/16/08
to hugi...@googlegroups.com
2008/2/16, ArAgost <ara...@gmail.com>:

> Images are shown wrongly oriented in the "images" tab, erraticly
> oriented on the control points tab (I've seen +0°, +90°, +180°,
> depending on the case),

confirmed also on new 2863 build

>and generates a very strangely oriented (but
> still correct, in a technical manner) panorama. Of course, one could
> say that I should just recenter panorama and horizon, but this is
> difficult to do precisely, and if there are many images the horizon
> gets wobbly, and the straighten button brings back the wrong pano. It
> appears as if instead of an horizontal row of vertical shots, it gets
> interpreted as a vertical row of horizontal shots, or something like
> this.

The 2863 bundle generates a correct panorama.

> And here's a project file (made with Hugin OS X 2851):
> http://www.mukkarasta.it/altro/DSC_6198-DSC_6200.pto

Yes, that one is really weird.

My 2851 build was in the middle of a huge set of changes/bugfixes by
Pablo which have now all culminated in the 2863 version (for the time
being off course). Maybe that was the problem.

ArAgost

unread,
Feb 16, 2008, 9:12:31 AM2/16/08
to hugin and other free panoramic software
> Yes, that one is really weird.
>
> My 2851 build was in the middle of a huge set of changes/bugfixes by
> Pablo which have now all culminated in the 2863 version (for the time
> being off course). Maybe that was the problem.

Tried again with 2863:
Right after loading, images are oriented right on the cp tab, wrong in
the image tab (shown as landscape). Every image has "roll" set to 270.
After pressing the align button on the assistan tab, panorama preview
shows up with distorted panorama (like that in the example file),
images now look wrong (landscape) in the control points tab.

I also noticed (and this could be key to the problem) that everything
works as expected with "real" portrait images, that is to say like a
2000x3000 image with orientation set to 1 (not oriented) as opposed to
a 3000x2000 image with embedded orientation information. In other
words, files like the test images that Pete provided for APSC (here
http://groups.google.it/group/hugin-ptx/msg/30b0f53892c69e0b the
message) work fine.

John McAllister

unread,
Feb 16, 2008, 1:05:16 PM2/16/08
to hugi...@googlegroups.com
I came across a similar problem some time ago.
I found the answer to be turning off the automatic orientation on the camera
and rotating the images in a photo editing app.


Pablo d'Angelo

unread,
Feb 17, 2008, 3:49:02 AM2/17/08
to hugi...@googlegroups.com
ArAgost schrieb:

>> Yes, that one is really weird.
>>
>> My 2851 build was in the middle of a huge set of changes/bugfixes by
>> Pablo which have now all culminated in the 2863 version (for the time
>> being off course). Maybe that was the problem.
>
> Tried again with 2863:
> Right after loading, images are oriented right on the cp tab, wrong in
> the image tab (shown as landscape). Every image has "roll" set to 270.
> After pressing the align button on the assistan tab, panorama preview
> shows up with distorted panorama (like that in the example file),
> images now look wrong (landscape) in the control points tab.
>
> I also noticed (and this could be key to the problem) that everything
> works as expected with "real" portrait images, that is to say like a
> 2000x3000 image with orientation set to 1 (not oriented) as opposed to
> a 3000x2000 image with embedded orientation information.

Indeed, the "Straigthen panorama" function didn't take care about the EXIF
orientation, and always assumed landscape orientation. That was due to a
error I made during updating to EXIV2.

Fixed in SVN rev. 2867

ciao
Pablo

ArAgost

unread,
Feb 17, 2008, 4:15:07 PM2/17/08
to hugin and other free panoramic software
On 17 Feb, 09:49, Pablo d'Angelo <pablo.dang...@web.de> wrote:

> Fixed in SVN rev. 2867

Thanks a lot, I'll wait for the new snapshot from Harry :)
...as a bonus, I promise to use the bugtracker from now on :)
Reply all
Reply to author
Forward
0 new messages