hugin_executor, where to add --fine-mask or --no-optimaisation?

28 views
Skip to first unread message

San Zamoyski

unread,
Apr 16, 2020, 5:13:38 PM4/16/20
to hugin and other free panoramic software

Hi!

I have multiple images of size 1024x1024 (in test case 82), they are overlapping each side-by-side for about 50%. I used basic example from http://hugin.sourceforge.net/docs/manual/Panorama_scripting_in_a_nutshell.html to create script:



pto_gen -f 10 -o 1.pto_gen.pto *.png
cpfind
-o 2.cpfind.pto --linearmatch --linearmatchlen 1 1.pto_gen.pto
cpclean
-o 3.cpclean.pto 2.cpfind.pto
linefind
-o 4.linefind.pto 3.cpclean.pto
autooptimiser
-a -m -l -s -o 5.autooptimiser.pto 4.linefind.pto
pano_modify
--canvas=AUTO --crop=AUTO -o 6.pano_modify.pto 5.autooptimiser.pto
hugin_executor
--stitching --prefix=prefix 6.pano_modify.pto

But the file is only partially merged. Reading output I've found I am dealing with common bug: http://wiki.panotools.org/Hugin_FAQ#Enblend_error:_Mask_is_entirely_black.2C_but_white_image_was_not_identified_as_redundant
But I have no idea, where should I add --fine-mask or --no-optimaisation.
Also, I'm using enblend v4.2, while FAQ states that it will be fixed in v4.0 ;)).

Best regards!

Bruno Postle

unread,
Apr 16, 2020, 5:21:28 PM4/16/20
to hugi...@googlegroups.com
The error suggests that the images haven't aligned. Have you been opening the intermediate PTO project files in Hugin to see if the various steps are doing what you expect? Does 6.pano_modify.pto look reasonable in the Hugin Preview window?

--
Bruno

San Zamoyski

unread,
Apr 16, 2020, 5:54:39 PM4/16/20
to hugin and other free panoramic software
I've added to 6th pto --fine-mask by hand and it works now, but only for the first 10 images.

Thanks Bruno for useful suggestion!
I've opened project in Hugin 5th and 6th pto - both look very similar.
This showed me that some parts of image are not stitched all right. 

Anyway 5th pto generates complete image but distorted and with black something in the middle of the image.
6th gives same effect as cli - only 10 images are stitched. But cropped and stitched correctly.

So, I believe, there is something wrong with pano_modify command.

Best regards!
6.log
5.autooptimiser.pto
6.pano_modify.pto

San Zamoyski

unread,
Apr 16, 2020, 6:02:26 PM4/16/20
to hugin and other free panoramic software
Sorry for message one after another, but it seems that adding "INTERNAL" blender works around it for me:
pano_modify --canvas=AUTO --crop=AUTO --blender=INTERNAL -o 6.pano_modify.pto 5.autooptimiser.pto
Reply all
Reply to author
Forward
0 new messages