On Mon, Dec 27, 2010 at 03:09:25PM +0000, Bruno Postle wrote:
> On 27 December 2010 14:53, kfj <[email protected]> wrote:
> >
> > I wanted to write a script to scale pto files up or down. I was going
> > to use my pto parser in python and have an afternoon's worth of fun
> > with it. Just to make sure I wasn't going to reinvent the wheel, I
> > googled a bit and lo and behold, I found
>
> I have a 'ptohalve' tool for this, it will be in the next
> Panotools::Script release, you can find it here:
> http://panotools.svn.sourceforge.net/viewvc/panotools/trunk/Panotools-Script/bin/ptohalve?view=markup&pathrev=1291
I have written a similar (private) script that does something similar
but the other way around. When I'm "on the road" my laptop isn't fast
enough to handle big images. So then I'll scale all the images, and
work on the half-sized images. When I'm done, I can scale the pto, and
tell hugin to stitch the full-sized images into the full-sized pano.
So, if we're looking into cleaning this up, I would suggest a
commandline scale parameter which Bruno apparently uses at 0.5, and I
use at 2.0....
Bruno, why did you check for multiple-of-two dimensions of the image?
Are there serious drawbacks to say a 333.3 image size? Hmmm. you'd
move the control points in the right half of the image by a fraction
of a pixel. I would suggest that this is worthy of a warning message:
Warning: your control points might move sligtly (less than a pixel).
but for speeding up say loading and stitching this is still a very
useful tool.
Roger.
--
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement.
Does it sit on the couch all day? Is it unemployed? Please be specific!
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx