there where several reports of problems with the 360° seam even if
the -w switch is used. I was able to reproduce the problem. In my
testpano the seam was not very much visible, but it's definitely
there.
best regards
--
Erik Krause
Offenburger Str. 33
79108 Freiburg
> Can you post instructions and example images for reproducing the problem?
In my own example it's very faint. Get them here:
http://www.erik-krause.de/vortex.zip
They reproduce the zenith vortex problem as well...
Theses are two equirectangular images out of 6
Simply pass them to enfuse using the -w parameter. View the result in
a spherical panorama viewer, like f.e. PTViewer. If you look straight
up there is the vortex and from that a faint line (a brightness
difference) goes down where the 360° joint is. This line is not
visible if you view the source images.
I'm waiting for some examples that show the effect better.
best regards
Erik Krause
http://www.erik-krause.de
Andrew> The "zenith vortex" artifact stems from the extreme warping at the top and
Andrew> bottom edges of equirectangular images. Enblend and Enfuse do not understand
Andrew> that all of the pixels along these edges are supposed to meet up. This is not a
Andrew> bug, it's a "missing feature". Unfortunately I don't know how to do this. Erik
How about using the panotools projection stack. Enfuse/enblend can
work in spherical coordinates, instead of cartesian. I don't really
know how enblend/enfuse work and if this will be useful, but it will
not be difficult to add the coordinate transformations (the input
equirectangulars make it easy).
Andrew> Krause suggested implementing a boundary condition where each top edge pixel
Andrew> matches with another top edge pixel 180 degrees away. I tried this several
Andrew> years ago and it does not work. It only produces a zenith vortex that is
Andrew> symmetrical through the zenith.
Andrew> Yuval's idea to use cube faces is more promising. All six cube faces would have
Andrew> to be made available to Enfuse at the same time. Then every edge would have a
This might sound stupid, but how about processing the equirectangular twice:
* Pass 1. Enblend/enfuse
* Pass 2. Rotate the images 90 degrees (pitch), such that zenith and the
nadir are in the horizon. Then enblend/enfuse.
* Blend the resulting images at aproximately the 45 degree parallel
(this can be done simply with a alpha channel in both images).
It will be significantly slower, though, but it does not require any
changes to enblend/enfuse. It can all be done via scripting with the
tools we currently have.
We can even require the user to provide the rotated images.
--
--
Daniel M. German
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .
> Erik Krause suggested implementing a boundary condition where each top
> edge pixel matches with another top edge pixel 180 degrees away. I tried
> this several years ago and it does not work. It only produces a zenith
> vortex that is symmetrical through the zenith.
Well, it didn't avoid the vortex completely in my test case but it
reduced significantly. What I did was to mirror the image on the top
edge, then shift it sideways half width. But I understand that this
is no solution, since it gives no perfect result.
Pablo mentioned that probably sinusoidal projection would be
beneficial. It has no horizontal pixel stretching and to produce it
from equirect there is only a 1-dimensional transformation needed if
the vertical pixel count stays the same. And there is only one
boundary to process. Unfortunately I don't have any idea whether this
is feasible.
I have some ugly script hidden somewhere. I'll have to grab it out,
rewrite it (it's PHP, meant to run on a server) and forward it to you.
what it does is:
- extract the cubefaces from the equirct
- combine them into "crosses" - one cross per cubeface
then you could work on the crosses, however I am not sure if the four
corners would be a problem. I like much better Daniel's idea of pitching
the equirect 90°.
For the sinusoidal: will the black around the boundaries be an issue?
anyway, new binaries for testing are up at
<http://panospace.wordpress.com/2008/02/03/enfuse-it-again/>
users of my hugin installer can simply replace the executables in
hugin/bin with those in the zip file.
Erik: thanks for the enf_comb scripts. Somehow they don't seem to work
here. me dummy. :(
Yuv
Erik> On Saturday, February 02, 2008 at 21:55, Andrew Mihal wrote:
>> Erik Krause suggested implementing a boundary condition where each top
>> edge pixel matches with another top edge pixel 180 degrees away. I tried
>> this several years ago and it does not work. It only produces a zenith
>> vortex that is symmetrical through the zenith.
Erik> Well, it didn't avoid the vortex completely in my test case but it
Erik> reduced significantly. What I did was to mirror the image on the top
Erik> edge, then shift it sideways half width. But I understand that this
Erik> is no solution, since it gives no perfect result.
Erik> Pablo mentioned that probably sinusoidal projection would be
Erik> beneficial. It has no horizontal pixel stretching and to produce it
Erik> from equirect there is only a 1-dimensional transformation needed if
Erik> the vertical pixel count stays the same. And there is only one
Erik> boundary to process. Unfortunately I don't have any idea whether this
Erik> is feasible.
The sinusoidal is area preserving, so this is a very good
idea. Perhaps it will give better results when combined with doing the
blending/enfusing in polar coordinates than the equirectangular. There
is less of a worry of interpolation. I guess it is a matter of trying
it.
--dmg
Erik> best regards
Erik> Erik Krause
Erik> http://www.erik-krause.de
Erik>