editing panorams in gimp (multiple layers)

JD Smith jdsmith at as.arizona.edu
Mon Oct 6 20:47:20 BST 2003


On Mon, 2003-10-06 at 03:43, Kai-Uwe Behrmann wrote:
> Am 06.10.03, 11:34 +0200 schrieb Pablo d'Angelo:
> 
> > Hi,
> >
> > Any gimp wizard out here?
> >
> > I've stitched some panoramas on the weekend and I'd like to edit them in
> > gimp to remove some moving people etc.
> >
> > I found http://www.vierpi.de/tif2xcf.html, to create an xcf file from
> > the TIFF_M output of PTStitcher. But is is horribly memory intensive for
> > bigger panoramas, because each image is contained in a layer as big as
> > the whole panorama. Naturally these layers are mostly black.
> 
> It should be not too hard to do it with the tif2xcf plug-in.
> 
> I do the layering within the tiff format with
> # convert (or tiffcp) 0001.tif 0002.tif result.tif
> to bring the single layers in one file because I want the 16bit preserved.
> (You need an tiffreader capable of layers for this, like in cinepaint.
> I can provide the plug-in for gimp-1.2 too, as somebody want to play
> with it in gimp.) This dont take care about the sizes as You would like.
> What You want is an image manipulation, which I did not find yet.
> 
> An other approach would be to let PT write out the offset itself and
> let the image as small as possible. This would need an libpano and
> ptstitcher modification.
> 
> > As far as I remember, gimp supports layers with different sizes. Does
> > anybody know gimp well enought to use script-fu to figure out the crop
> > size and insert them into an xcf file composed of several smaller layers

I use gimp-server, and batch convert the TIFF files directly to xcf. 
It's much faster than actually opening the images and using up memory to
display them.  I stole the code from the plugin, and converted it to run
in stand-alone mode without any display (attached).  Then I use
something like:

gimp --batch '(extension-perl-server 0 0 0)' &
gimp_pt myscript

You need to run PTStitcher both for the masks and the images themselves,
which is wasteful, since it computes all the distortions twice.  This is
the kind of thing we could fix if we had the PTStitcher code (not to
mention just outputting XCF directly, and saving ourself all this
trouble).

JD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gimp_pt
Type: text/x-perl
Size: 4829 bytes
Desc: not available
Url : http://www.email-lists.org/pipermail/ptx/attachments/20031006/dce2556b/gimp_pt.bin


More information about the ptX mailing list