autopano-sift --projection 0,50 test.pto folder1/pic.JPG folder2/
pic.JPG folder3/pic.JPG
celeste_standalone -i test.pto -o test.pto
autooptimiser -a -l -s -m -o test.pto test.pto
enblend -o test.jpg test0000.jpg test0001.jpg test0002.jpg ...
I have all of the files from the bin folder from Hugin, along with
this batch file and the folders that contain the photos, all in one
folder (but Autopano-sift has its own folder that has tons of files in
it). Why doesn't this work? Any help wold be great.
Also, is there a way to do batch cropping? I want to crop all of my
photos to the same size so you don't see any black.
Thanks
The way to test it is to run the commands one at a time on the
command-line and see what happens at each stage.
If you use cpfind you don't need to run celeste_standalone, since
there is now a cpfind --celeste option.
>Also, is there a way to do batch cropping? I want to crop all of my
>photos to the same size so you don't see any black.
You can do this with the pano_modify tool.
--
Bruno
I'm new to batch files, so sorry if these are dumb questions
> autopano-sift --projection 0,50 test.pto folder1/pic.JPG folder2/
> pic.JPG folder3/pic.JPG
> celeste_standalone -i test.pto -o test.pto
> autooptimiser -a -l -s -m -o test.pto test.pto
hang on... I think you're missing something right here. The commands
so far create the pto and optimize the image positions to fit the
control points. But you haven't got the 'warped' images yet. You need
a call to nona with the optimized pto to produce the images
test0000.jpg etc. - with a call like
nona -o test test.pto
once you have them you can proceed to the next step and call enblend:
> enblend -o test.jpg test0000.jpg test0001.jpg test0002.jpg ...
Kay
cpfind --celeste -o test.pto test.pto
and the pano_modify code is this
pano_modify -c --crop=AUTO --output=test.pto test.pto
But that doesn't say where to find the photos that you want in the
panorama. My entire code is now:
cpfind --celeste -o test.pto test.pto
autooptimiser -a -l -s -o test.pto test.pto
nona -o test test.pto
enblend -o test.tif test0000.tif test0001.tif test0002.tif ...
pano_modify -c --crop=AUTO --output=test.pto test.pto
I ran this, and I got these errors
HuginBase::Panorama::readData(): Failed to read from dataInput. ERROR:
couldn't parse panos tool script: 'test.pto'!
autoptimiser -a-l-s-o test.pto test.pto could not open script :
test.pto
HuginBase::Panorama::readData(): Failed to read from dataInput. ERROR:
couldn't parse panos tool script: 'test.pto'!
enblend: no input files specified
pano_modify -c --crop=AUTO --output=test.pto test.pto could not open
script : test.pto
I'm guessing that because they all mention input, that it is becauseI
don't specify where to get the pictures from
>HuginBase::Panorama::readData(): Failed to read from dataInput. ERROR:
>couldn't parse panos tool script: 'test.pto'!
>I'm guessing that because they all mention input, that it is becauseI
>don't specify where to get the pictures from
Yes, cpfind (unlike autopano-sift-c) expects to get the list of
input photos from an existing .pto project.
You can create this project in several ways:
* Save a Hugin project and use it as a template. Either edit it to
suit the filenames of the photos, or just rename your files to suit
the names in the project file.
* Use match-n-shift to generate the project from the filenames, this
requires a perl installation.
* Use a Hugin snapshot from today (i.e. from the 'tip' not the
upcoming 2011.4 release), Thomas has added a new tool called
'pto_gen' that replaces match-n-shift, so you don't need to have
perl.
--
Bruno
cpfind --celeste -o test.pto test.pto
autooptimiser -a -l -s -o test.pto test.pto
nona -o test test.pto
enblend -o test.tif test0000.tif test0001.tif test0002.tif ...
pano_modify -c --crop=AUTO --output=test.pto test.pto
When into the Hugin GUI, and made a panorama. I took the .pto and
saved it in the folder with the .bat. Ran it, and it worked.
One question though. I see that it also spits out 3 other images
(test0000.tif, test0001.tif and test0002.tif) They aren't needed since
they are just the individual warped sections of the panorama. How can
I stop it from making these files? I'm see that it is enblend that is
doing it. Do I just need another line using the DEL command, or is
there a way to stop it without having it do that?
These are created by nona, and are used as input by enblend. You
can delete them after the enblend stage.
--
Bruno
match-n-shift [options] --output project.pto image1 image2 [...]
So for my code (with the images in separate folders), I have this
code:
match-n-shift --output test.pto folder1/1.jpg folder2/1.jpg folder3/
jpg
However, I get a lot of errors.
'generatekeys' is not recognized as an internal or external command,
operable program or batch file.
^ is repeated 3 times
'autopano' is not recognized as an internal or external command,
operable program or batch file.
Use of unintialized value in division (/) at loader /loader/0x1471490/
match-n-shift.pl line 168
^ repeated dozens of times for several other lines
Do I have the right match-n-shift? Or am I calling it wrong? You say I
have to have Perl. Te place that I downloaded match-n-shift from came
with a file called perl58.dll. Is that all I need, or is there
something else?
Thanks
match-n-shift -o test.pto folder1/1.jpg folder2/1.jpg folder3/1.jpg
I've even tried taking the picture out of the folders, but that didn't
work either.
This is an ancient match-n-shift (it runs some tools from
autopano-sift-c directly). There was a current Windows version
of all the Panotools::Script tools posted to this list recently.
--
Bruno
I was fiddling around with what I had earlier today, and I got it to
work somewhat (not really). It recognized the pictures, but it
destroyed the panorama (completely distorted it, some parts were
flipped and it wouldn't crop properly). I also still needed to keep
a .pto file that I had made in Hugin in the folder with the .bat file
so it wouldn't crash.
Again, thanks for the help
On Dec 10, 6:52 am, Harry van der Wolf <hvdw...@gmail.com> wrote:
> Why not use PTBatcherGui for bulk processing of several sets of panorama
> images? You use a batch file for multi-pano automation but PTBatcherGui can
> do the same.
>
> Take a look athttp://wiki.panotools.org/Hugin_Batch_Processor#Automation
Thanks
> Could someone please post a link to where I can find pto_gen? I've
> looked everywhere, but I can't find it. I've downloaded match-n-shift
> from the SouceForge site, but it is warping the panorama.
pto_gen was only recently added to the hugin source. You will need to
build the latest default branch if you can't get hold of a built version.
Cheers,
--
Regards,
Terry Duell
It is using the equivalent of pto_gen, cpfind, celeste_standalone,
linefind, cpclean, autooptimiser, vig_optimize, pano_modify, pto2mk,
nona and enblend (not necessarily in that order), note that the
cpfind command-line tool now includes celeste functionality and
autooptimiser includes vig_optimize functionality.
--
Bruno
pto2mk -o myproject.pto.mk -p myproject myproject.pto
On Dec 10, 6:52 am, Harry van der Wolf <hvdw...@gmail.com> wrote:
> Why not use PTBatcherGui for bulk processing of several sets of panorama
> images? You use a batch file for multi-pano automation but PTBatcherGui can
> do the same.
>
> Take a look athttp://wiki.panotools.org/Hugin_Batch_Processor#Automation
Each of these tools is documented:
http://wiki.panotools.org/Vig_optimize
http://wiki.panotools.org/Autooptimiser
--
Bruno