← Back to team overview

hugin-devs team mailing list archive

[Bug 1153546] Re: black artifacts after blending

 

>> 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.

Well, in that case I'll definitely take the long way.

I recompiled version 4.1-ab6c93c11578 with DEBUG_POLYGON_FILL
(DEBUG_SEAM_LINE is also quite interesting) enabled in mask.h.  Although
I don't understand all details of what is happening in
the debugging part, the ",polygon.tif" is highly interesting:  One can
see, that the right seam is interrupted towards the bottom (in this
case, independently of optimization).  Then, there is a function that
tests if seams are closed to a loop and if they aren't, closes them.
Having an falsely interrupted seam causes wrong parts of seams to be
connected, which may lead to self intersecting polygons.

The ,polygon.tif is attached (converted to jpg for space reasons).

I will read more of mask*h in the next days.  Maybe it helps me
understand where the gap comes from.

cheers, lukas


** Attachment added: ",polygon_lr.jpg"
   https://bugs.launchpad.net/enblend/+bug/1153546/+attachment/3571624/+files/%2Cpolygon_lr.jpg

-- 
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