← Back to team overview

hugin-devs team mailing list archive

[Bug 1153546] Re: black artifacts after blending

 

> ... choosing nft doesn't make a difference
> with respect to my problem

        You are using a pre-release of Enblend
version 4.1.  Therefore, your default PSG is
NFT, I'm on the development tip and GC is the
default here, thus I had to force NFT and you
found no differences.  Makes sense.


> Would it be a solution for me to turn
> seam-optimization off by default?

        Yes, if it cures the problem and you can
live with the sub-optimal blend.

We have a bug in the seam-line optimizer in
Enblend version 4.1.  You could either
reconfigure your SCM to use the stable branch
with
        hg branch stable-4_1
or download the 4.1pl1 tarball from SF.  BTW,
Both go with the "old" Boost libraries.


> Is there anything I can do to find out what
> what causes my black areas?

        Depends on how masochistic you are.  If
the packaged version 4.1.1 or switching to the
stable branch fixes the bug you could call it a
day.  Otherwise, use e.g. `--save-masks' or
`--optimize --visualize' to find out about the
seam lines.  More hard core hacking ("We'll take
the long way."  -- Princess Amidala): recompile
Enblend with
        -DDEBUG_POLYGON_FILL
after comprehending what the #define does and
where the the heck ",polygon.tif" comes from.


> Unfortunately I can't compile the most recent
> version off the svn because it depends on some
> boost libraries that are newer than the ones
> that ship with Debian 6. However Debian 7 will
> be stable some time soon-isch.

        I'm on an ancient Debian system, too.
My workaround is to pull Boost from their SVN
repo, compile it, and point to the
in-source-tree directories "b2" instructs me to
when re-configuring Enblend/Enfuse.  Part of my
"reconfigure" script looks something like this:

    set -a    # export all variables
    ...
    BOOST_ROOT=<path-to-compiled-boost-svn-directory>
    CPPFLAGS=-I$BOOST_ROOT
    LDFLAGS=-L$BOOST_ROOT/stage/lib -Wl,-rpath=$BOOST_ROOT/stage/lib
    ...
    ../configure <your-options>

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Enblend.
https://bugs.launchpad.net/bugs/1153546

Title:
  black artifacts after blending

Status in Enblend:
  New

Bug description:
  I'm frequently getting black artifacts on some blended photos (none or
  one in small projects, easily 5 to 10 artifacts in projects of more
  than 100 photos).

  The occurrence of artifacts does not depend on the output resolution.
  The shape, however, is dependent on the resolution.

  Appended are three photos.  On my machine blending yields the following output: 
  $ enblend -v -o foo.tif img_7306-73170000.tif img_7306-73170010.tif img_7306-73170011.tif --fine-mask
  enblend: info: loading next image: img_7306-73170000.tif 1/1
  enblend: info: loading next image: img_7306-73170010.tif 1/1
  enblend: images do not overlap - they will be combined without blending
  enblend: use the "-l" flag to force blending with a certain number of levels
  enblend: info: loading next image: img_7306-73170011.tif 1/1
  enblend: info: creating fine blend mask: 1/3 2/3 3/3
  enblend: info: optimizing 2 distinct seams
  enblend: info: Annealing Optimizer, s0: 1/4 2/4 3/4 4/4
  enblend: info: Annealing Optimizer, s1: 1/4 2/4 3/4 4/4
  enblend: info: Dijkstra Optimizer: s0 s1
  enblend: info: using 5 blending level(s)
  enblend: info: generating Gaussian pyramid:  g0 g1 g2 g3 g4
  enblend: info: generating Gaussian pyramid:  g0 g1 g2 g3 g4
  enblend: info: generating Laplacian pyramid: l0 l1 l2 l3 l4
  enblend: info: generating Gaussian pyramid:  g0 g1 g2 g3 g4
  enblend: info: generating Laplacian pyramid: l0 l1 l2 l3 l4
  enblend: info: blending layers:              l0 l1 l2 l3 l4
  enblend: info: collapsing Laplacian pyramid: l4 l3 l2 l1 l0
  enblend: info: writing final output


  The version is
  $ enblend -V
  enblend 4.1-700e60bc31b5

  Copyright (C) 2004-2012 Andrew Mihal.
  License GPLv2+: GNU GPL version 2 or later <http://www.gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

  Written by Andrew Mihal and others.

  Please tell me if any additional output would be helpful.

  cheers, lukas

To manage notifications about this bug go to:
https://bugs.launchpad.net/enblend/+bug/1153546/+subscriptions


References