Include mask and MOST of 2nd image black

Bug #1939930 reported by Scott Cowles Jacobs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Enblend
New
Undecided
Unassigned

Bug Description

I have a 2-image pano that has a car in the overlapping section of the left image, and none in the overlapping section of the right one.

I want the car to be there.

Despite the car being there in the preview, it is missing in the final pano.
Thinking that Hugin is automatically preferring the right over the left, I "cleverly" flipped both
images so that the car was in the right image, and ran Hugin again. Car still missing...

I researched the problem, and came upon the concept of Masks, and how to make an include mask.

I drew a polygon around the car, selected "Include Region", and then "Stitch!" (or possibly
"3. Create panorama").

The area of the mask is completely black on the left part of the final image.
The right part of the image is also completely black, except for a thin horizontal strip along
the top, which blends into the black.

In searching for others who might have reported this bug, I came upon:
https://answers.launchpad.net/hugin/+question/675074
which suggests: "- add switch --primary-seam-generator=nft to the enblend options on the stitcher tab"
Indeed, this solves the problem.

However, the bug has not been fixed, even though it must have existed before "2018-10-11", as the very first comment contained the above suggestion.

The same comment said: "Either the remapping stage has a bug or the blending program has problems in finding the correct seams for complex masks."
There are only two images, and one mask, in my image - not "complex", then...

Is there no way for Hugin/enblend to recognize the problem, and apply the solution automatically?

Perhaps if an include mask is present, that should be enough to trigger it...

-------------------------------------------

scott@ASUS-Prime-B350MA:~$ uname -a
Linux ASUS-Prime-B350MA 5.10.0-5-amd64 #1 SMP Debian 5.10.26-1 (2021-03-27) x86_64 GNU/Linux

Using Sway 1.5, wlroots (libwlroots6: Installed: 0.11.0-3) under Debian Testing

Invoking About... yields an error message:
"08:21:30 PM: can't open file '/usr/share/hugin/xrc/data/COPYING.txt' (error 2: No such file or directory)
08:21:30 PM: File couldn't be loaded."

However the System tab yields:

"Operating System: Linux 5.10.0-5-amd64 x86_64
Architecture: 64 bit
Free memory: 10769072 kiB

Hugin
Version: 2020.0.0.2f576e5d5b4a
Path to resources: /usr/share/hugin/xrc/
Path to data: /usr/share/hugin/data/
Hugins camera and lens database: /home/scott/.hugindata/camlens.db
Multi-threading using C++11 std::thread and OpenMP

Libraries
wxWidgets: wxWidgets 3.0.5
wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.20.

libpano13: 2.9.20
Boost: 1.74.0
Exiv2: 0.27.3
SQLite3: 3.34.1
Vigra: 1.11.1
LittleCMS2: 2.9"

They don't list enblend/enfuse, but their version is: 4.2-8
-----------------------------------------------

I will attach the .pto file, and the final image.

If you want the original .jpg s let me know.

[I have checked the "copy logfile to clipboard" preference, but I get nothing
upon "pasting" into my text editor - maybe because of Wayland (but I normally
have no problem with ctrl-c/ctrl-v cutting and pasting) ... ]

Tags: mask
Revision history for this message
Scott Cowles Jacobs (scott092707) wrote :
Revision history for this message
Scott Cowles Jacobs (scott092707) wrote :
Revision history for this message
Scott Cowles Jacobs (scott092707) wrote :
Revision history for this message
Bruno Postle (brunopostle) wrote : Re: [Bug 1939930] Re: Include mask and MOST of 2nd image black

The black areas are a long standing and intractable enblend bug. An alternative is to use the 'verdandi internal Hugin blender', which is a hugin option. This stitcher has a different feature-set, but may suit you better.

On 14 August 2021 02:53:25 CEST, Scott Cowles Jacobs <email address hidden> wrote:
>** Attachment added: "20210813_Hugin_Editor_Masks_Tab.png"
> https://bugs.launchpad.net/hugin/+bug/1939930/+attachment/5517820/+files/20210813_Hugin_Editor_Masks_Tab.png
>

Revision history for this message
Scott Cowles Jacobs (scott092707) wrote :

The only options on the Blender dropdown are Enfuse and builtin.

I guess that "builtin" is verdandi...?

Revision history for this message
Bruno Postle (brunopostle) wrote :

Yes, does this fix the problem for you?

--
Bruno

On 15 August 2021 04:34:05 CEST, Scott Cowles Jacobs wrote:
>The only options on the Blender dropdown are Enfuse and builtin.
>
>I guess that "builtin" is verdandi...?

tmodes (tmodes)
affects: hugin → enblend
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.