LWN.net Logo

Controlling face overlays from different photos

Controlling face overlays from different photos

Posted Sep 9, 2009 3:35 UTC (Wed) by hannada (subscriber, #4633)
In reply to: The Grumpy Editor's hugin experience by aigarius
Parent article: The Grumpy Editor's hugin experience

Hugin does provide a fairly simple mechanism for controlling situations such as the one you describe (where different pieces of images of faces are inappropriately combined from different images). This method requires that the images be in a format that provides an alpha channel to control transparency. In my case, I

1) Converted the original images from JPEG into PNG. (JPEG seems not to support alpha channels).
2) Used GIMP to activate an alpha channel layer for the image.
3) Used GIMP to "paint" the alpha channel layer "off" (fully transparent) for the parts of the input images that I wished to exclude from the final merged image.
4) Export the modified image as a PNG file (large, but temporary), then built the final panorama from these modified images.

In this way, I was able to select which of the redundant image elements would be excluded and eliminate the "chopped image" appearance that you describe. Note that this feature is strictly "on" or "off". Gradations in the alpha channel are ignored.


(Log in to post comments)

Controlling face overlays from different photos

Posted Sep 10, 2009 20:47 UTC (Thu) by roelofs (guest, #2599) [Link]

1) Converted the original images from JPEG into PNG. (JPEG seems not to support alpha channels).

JPEG/JFIF doesn't, but JPEG/JNG does (e.g., see libmng). It's not widely supported, though.

However, for what you're doing--multistage image editing--you want PNG or some other lossless format anyway. Switch back to JPEG only at the very end.

Greg

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds