On Monday, 13 October 2025 at 21:29:00 -0700, Abrimaal wrote: > I am looking for a way to straighten single images, using batch process > (for example 1000 video frames in a folder). > > How can I write a script? > - command line / pto file / assistant script
I'm not sure I understand this last line, but it sounds like something
I do regularly, though with far fewer than 1000 images.
My scripts are barely too long to quote here, so you'll have to follow
the links.
1. mkpto makes .pto files from specific files (those matching C/*EV*;
hysterical raisins). You would need to change that, or eliminate
this step altogether and go to the next step.
2. mpkto1 does the real work, invoking a number of standard Hugin
programs and also a script discolour.
3. discolour removes colour skew from the .pto files.
At this point I run the Hugin GUI to check and maybe frob the .pto
files.
4. stitch does the actual stitching.
They will almost certainly need changing for your purposes. You can
find all four scripts at
http://www.lemis.com/grog/src/mpkto
http://www.lemis.com/grog/src/mpkto1
http://www.lemis.com/grog/src/discolour and
http://www.lemis.com/grog/src/stitch
Let me know if you need any explanations.
Greg
--
Sent from my desktop computer.
Finger [email protected] for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA.php
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/hugin-ptx/aO3VLKoAhBR1G5LM%40hydra.lemis.com.
signature.asc
Description: PGP signature
