problems tessalating

52 views
Skip to first unread message

paul womack

unread,
Feb 17, 2015, 10:38:01 AM2/17/15
to hugi...@googlegroups.com
(I'm using hugin 2014.0.0.51ff237f209e on Ubuntu 14.04)

I am attempting to stitch together a set of tiles. These tiles
tessalate, but also have a border.

So I'm setting control points on the corresponding corners,
and setting a mask to remove the borders (i.e. only include the middle).

I can't use the obvious "crop"
since some of the tiles have been photographed at an angle.

All this has gone well.

But the stitching/blending has gone very poorly.
Masking appears to not ... not work, or at least do something
I don't understand. The mask only seems to be applied
where the source images overlap.

In the attached sample, for example, the top-left image
retains its left and top border, only being masked on its
right and bottom edges.

This can be seen easily by doing

nona -m TIFF_multilayer -o tst hug.pto

And viewing the resulting multi layer tiff in Gimp.

If I let hugin (AKA enblend) stitch the images, I not only
get an unwanted border, but enblend goes a "little nuts"
if the masks areas don't quite touch. Pitch black pieces are created,
which leak and bleed a lot.

I attached a single image, and a pto. The 4 images in the pto
are simply copies of the one image.

Advise welcomed.

BugBear
hug.pto
k.jpg

T. Modes

unread,
Feb 17, 2015, 11:51:46 AM2/17/15
to hugi...@googlegroups.com


Am Dienstag, 17. Februar 2015 16:38:01 UTC+1 schrieb bugbear:

Masking appears to not ... not work, or at least do something

No, it works fine.
 
and setting a mask to remove the borders (i.e. only include the middle).

That's not the way how an include mask works.
Include mask are not crop mask (and are not the opposite of exclude mask in this respect).
Include mask use an other concept. Include mask incorporates the selected region to the final pano. This is done by removing the selected region from all overlapping images. So enblend is forced to put the selected region into the final pano. The regions outside the include mask are also used, they can be included in the final pano, but not necessary.

Thomas

bugbear

unread,
Feb 17, 2015, 12:27:14 PM2/17/15
to hugi...@googlegroups.com
T. Modes wrote:

>
>
> That's not the way how an include mask works.
> Include mask are not crop mask (and are not the opposite of exclude mask in this respect).
> Include mask use an other concept. Include mask incorporates the selected region to the final pano. This is done by removing the selected region from all overlapping images. So enblend is forced to put the selected region into the final pano. The regions outside the include mask are also used, they can be included in the final pano, but not necessary.

Ah - that explains what I'm seeing. Thank you.

BugBear


bugbear

unread,
Feb 18, 2015, 12:01:07 PM2/18/15
to hugi...@googlegroups.com
I've now made a very dirty Panotools:Scripts perl program
that takes a 4 sided "include" mask, and transforms it
into 4 "exclude" masks, extending just beyond each side of the photo, built
on the line of the original mask.

This gives the simple "include" masking behaviour I want :-)

BugBear

bugbear

unread,
Feb 27, 2015, 4:25:03 AM2/27/15
to hugi...@googlegroups.com
bugbear wrote:
>
> I've now made a very dirty Panotools:Scripts perl program
> that takes a 4 sided "include" mask, and transforms it
> into 4 "exclude" masks, extending just beyond each side of the photo, built
> on the line of the original mask.
>
> This gives the simple "include" masking behaviour I want :-)

Attached, in case anyone else wants the same behaviour.

BugBear

pto_crop_to_excl.pl
Reply all
Reply to author
Forward
0 new messages