Include mask works well in preview, but black or transparent in panorama

Asked by Lesnake

I've made a burst shot of a bird flying. With the movement it creates a panorama. Hugin is capable of creating control points and create a panoramic.

For the fun, I decided to include the bird from all the images in the panorama. The expected result is a panorama with all the positions of the bird.

This works very well in the GL preview. But when I create the panorama there are two main problems:
- Some mask result in black patch
- Overlapping mask regions result in transparent area.

There is a third problem, but I have found an explanation somewhere else (kind of grey shadow around some masks). I'll try to work aound this one later.

Before filing a bug, I come here to ask what to check.

Environment: vanilia hugin 2018.0.0 on ubuntu 18.04 64bits

I can give images and .pto

Question information

Language:
English Edit question
Status:
Answered
For:
Hugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
tmodes (tmodes) said :
#1

> - Some mask result in black patch
Without more details it is difficult to say. Either the remapping stage has a bug or the blending program has problems in finding the correct seams for complex masks. In the last case you could try:
- add switch --primary-seam-generator=nft to the enblend options on the stitcher tab
- or using the internal blender.
Otherwise provide the pto file (the images are not needed in the first step).

> - Overlapping mask regions result in transparent area.
This is a limitation of the include mask. Overlapping include masks are not supported.
In the mask tab you can show the extend of the masks in other images and adjust the masks so that they don't overlap.

Revision history for this message
Lesnake (mazeinp) said :
#2

> - Some mask result in black patch
Here is a link to the .pto : https://pastebin.com/wiEGFP8f
Here is a link to the log : https://pastebin.com/pAP65wna
Here is a link to the log when running using the --primary-seam-generator=nft switch : https://pastebin.com/TMSxu9wG

Using the --primary-seam-generator=nft parameters has no consequence on overlapping areas. It has a positive consequence on black patches : the expected content of the mask is in the panoramic.

I've made no tests using internal blender. Do the result interest you ?

> - Overlapping mask regions result in transparent area.
>This is a limitation of the include mask.
Ok, good to know.
How about a message like :
"Overlapping include masks have unpredictable results" in the bottom bar ?

I guess you already have a lot of pictures to unit test Hugin, but if you need 16 more, let me know.

Revision history for this message
tmodes (tmodes) said :
#3

Okay, it works fine with your project file. When I activate all images I see also the black patches in fast preview window. So all is fine.

(For testing it would be better to change only one parameter. In your examples you changed the blender parameter, but also the number of active images and the kind of output (normal pano <-> exposure fused from stacks).)

Can you help with this problem?

Provide an answer of your own, or ask Lesnake for more information if necessary.

To post a message you must log in.