[hugin-ptx] Re: Old Panorama + new photo of a person.

2010-04-09 Thread cri
The mask function introduced in Hugin by Thomas Modes starting from
revision 4978 is what you need for this.
If you are under windows you could download from [1] the revision 5063
that includes the mask feature.
Instead, if you are under linux, you need to compile Hugin from source
as described in the wiki pages [2] under the letter "H" for different
distributions.
If you need a tutorial on how to use the masking function I've made
one on flickr [3] for a similar case to your.
If you can't use a recent version of Hugin with masking function you
could try the method described by Bruno Postle [4] (a little less
straightforward but it works).

Regards
Cristian

[1] http://lemur.dreamhosters.com/hugin/
[2] http://wiki.panotools.org/Category:Software:Platform:Linux
[3] http://www.flickr.com/groups/hugin/discuss/72157623472700076/
[4] http://hugin.sourceforge.net/tutorials/enblend-svg/en.shtml


On 9 Apr, 21:37, "Jozef A. Habdank"  wrote:
> Hello Gyus,
>
> I have a nice panorama that I have stitched in Hugin. After a while I
> decided to take a photo of myself at the same place as the panorama
> was done,  and I wanted to 'overlay' the picture of me on top of the
> panorama. I have aligned the photo correctly, move the picture of me
> on top and in the preview it looks perfect. But when I stitch the
> photo, it uses the background images (the photos from the old
> panorama) over me, and I am not visible on image after stitching. This
> was surprising since I was clearly visible in the preview.
>
> Is it possible to force Hugin to use a part of one image over all the
> others? In that way I could select me on the image, and let him do the
> rest.
>
> Thanks in advance,
> Jozef

-- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

To unsubscribe, reply using "remove me" as the subject.


Re: [hugin-ptx] Re: Old Panorama + new photo of a person.

2010-04-09 Thread James Legg
On Fri, 2010-04-09 at 15:37 -0700, Dezen wrote:
> I think it is not yet possible, some kind of a mask editor is under
> development right now.

Actually, you can use the mask editor right now if you can get (or make)
a recent trunk build of Hugin. On the mask tab you can make an include
region mask around the image parts you want to force in the output.

On Fri, 2010-04-09 at 12:37 -0700, Jozef A. Habdank wrote:
> I have a nice panorama that I have stitched in Hugin. After a while I
> decided to take a photo of myself at the same place as the panorama
> was done,  and I wanted to 'overlay' the picture of me on top of the
> panorama. I have aligned the photo correctly, move the picture of me
> on top and in the preview it looks perfect. But when I stitch the
> photo, it uses the background images (the photos from the old
> panorama) over me, and I am not visible on image after stitching. This
> was surprising since I was clearly visible in the preview.

The preview just draws images directly over the top of each other. When
you stitch a panorama the overlapping parts of the images are merged
with Enblend, which takes longer but produces much less noticeable seams
between the images.

In your case, Enblend will have noticed that the photo of you adds no
more area to the panorama. Ignoring it is the ideal solution: maximum
image area and no seams.

If you wish to blend the images with Hugin or Enblend, you need to cut a
hole in the panorama image where you appear in the other. Include region
masks in Hugin make this easier.

Alternatively, you can output just the remapped images, and blend them
together manually with something else.

-James


-- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

To unsubscribe, reply using "remove me" as the subject.


[hugin-ptx] Re: Old Panorama + new photo of a person.

2010-04-09 Thread Dezen
Hello Jozef,
I think it is not yet possible, some kind of a mask editor is under
development right now.
Instead I would take the background photo, add a rough alpha mask i.e.
in GIMP at the place where you would like to add yourself, so that it
would be transparent and enblend would be forced to add your photo,
save it as .tif, replace in your .pto file the old background pic.jpg
with the edited .tif one, then stitching and blending as usual in
Hugin.


> Hello Gyus,
>
> I have a nice panorama that I have stitched in Hugin. After a while I
> decided to take a photo of myself at the same place as the panorama
> was done,  and I wanted to 'overlay' the picture of me on top of the
> panorama. I have aligned the photo correctly, move the picture of me
> on top and in the preview it looks perfect. But when I stitch the
> photo, it uses the background images (the photos from the old
> panorama) over me, and I am not visible on image after stitching. This
> was surprising since I was clearly visible in the preview.
>
> Is it possible to force Hugin to use a part of one image over all the
> others? In that way I could select me on the image, and let him do the
> rest.
>
> Thanks in advance,
> Jozef

-- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

To unsubscribe, reply using "remove me" as the subject.