Masking in hugin

5 views
Skip to first unread message

Timothee

unread,
Nov 15, 2009, 9:16:12 PM11/15/09
to hugin and other free panoramic software
Hi all,

I've read the tutorial "Masking for enblend with SVG and Inkscape" at:
http://hugin.sourceforge.net/tutorials/enblend-svg/en.shtml

This is good, but it is a little old (December 07), and I was
wondering whether there is any newer technique/software to do masking?

I'm trying to do a 360 pano with my kids for xmas and they just won't
stay still, so I definitely will have to do some level of masking.

Will there eventually be a GUI tool within hugin itself to do masking?

Thanks in advance for any tips and pointers!
Tim.

Seb Perez-D

unread,
Nov 16, 2009, 3:49:07 AM11/16/09
to hugi...@googlegroups.com
On Mon, Nov 16, 2009 at 03:16, Timothee <timothee...@muvee.com> wrote:
> I'm trying to do a 360 pano with my kids for xmas and they just won't
> stay still, so I definitely will have to do some level of masking.

You can also edit the TIF images in Gimp (or Photoshop), erasing the
bits you don't want. A bit more cumbersome perhaps, but it works. Just
be sure to uncheck the box "Cropped output" in the options to nona, in
the Stitching tab.

> Will there eventually be a GUI tool within hugin itself to do masking?

There is indeed such a project going on, but not advanced enough I
think. It was a 2008 Google Summer of Code:
http://maskingingui.blogspot.com/

http://wiki.panotools.org/SoC_2008_Masking_in_GUI

Best,

Seb

Timothee

unread,
Nov 19, 2009, 12:52:13 PM11/19/09
to hugin and other free panoramic software
Hi Seb,

Thanks for your answer!


On Nov 16, 4:49 pm, Seb Perez-D <sbprzd+...@gmail.com> wrote:
> On Mon, Nov 16, 2009 at 03:16, Timothee <timothee.grol...@muvee.com> wrote:
> > I'm trying to do a 360 pano with my kids for xmas and they just won't
> > stay still, so I definitely will have to do some level of masking.
>
> You can also edit the TIF images in Gimp (or Photoshop), erasing the
> bits you don't want. A bit more cumbersome perhaps, but it works. Just
> be sure to uncheck the box "Cropped output" in the options to nona, in
> the Stitching tab.

Thank you very much for the precision, after your post, re-reading the
inkscape article, and giving both approach a try, I now understand how
this process works.

For negative masking, using gimp to erase unwanted bits is indeed the
fastest option for me. I have a large 360x180 pano (22 tif layers at
13834x6686), and the inkscape solution is hard to use because inkscape
takes too much memory: the few top layer images cannot even be loaded
on my machine, so I cannot see what I am working with :(.

That being said, the gimp solution is not so nice for positive
masking. Then again, neither is the inkscape approach. In both cases,
we basically have to erase the desired area from all pano layers
except the current one. That's a lot of boring, manual work when there
are many layers.


> > Will there eventually be a GUI tool within hugin itself to do masking?
>
> There is indeed such a project going on, but not advanced enough I
> think. It was a 2008 Google Summer of Code:http://maskingingui.blogspot.com/
>
> http://wiki.panotools.org/SoC_2008_Masking_in_GUI

That's great, I will give this a try as when I can, and I certainly
look forward to having it integrated in hugin :D

regards,
Tim.

Seb Perez-D

unread,
Nov 19, 2009, 3:13:51 PM11/19/09
to hugi...@googlegroups.com
On Thu, Nov 19, 2009 at 18:52, Timothee <timothee...@muvee.com> wrote:
>
> That being said, the gimp solution is not so nice for positive
> masking. Then again, neither is the inkscape approach. In both cases,
> we basically have to erase the desired area from all pano layers
> except the current one. That's a lot of boring, manual work when there
> are many layers.

What I do in those cases is to add a layer on the enblended panorama,
add a black mask and paint in the positive parts.

Cheers,

Seb

Timothee

unread,
Nov 19, 2009, 10:39:03 PM11/19/09
to hugin and other free panoramic software
On Nov 20, 4:13 am, Seb Perez-D <sbprzd+...@gmail.com> wrote:
>
> > That being said, the gimp solution is not so nice for positive
> > masking. Then again, neither is the inkscape approach. In both cases,
> > we basically have to erase the desired area from all pano layers
> > except the current one. That's a lot of boring, manual work when there
> > are many layers.
>
> What I do in those cases is to add a layer on the enblended panorama,
> add a black mask and paint in the positive parts.

Thank you for another very good tip! I'm not very good with gimp but
it looks like it's time I learn a little more.

Cheers!
Tim.


Reply all
Reply to author
Forward
0 new messages