Open

by damned truths

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

I am trying to stitch images through command line of Hugin as outlined here: http://wiki.panotools.org/Panorama_scripting_in_a_nutshell#Simple_command-line_stitching

I did the first step to create control points; that is:

autopano-sift-c --projection 0,50 project.pto DSC_1234.JPG DSC_1235.JPG DSC_1236.JPG

But when I write this command:

celeste_standalone -i project.pto -o project.pto

This error comes:

Couldn't open SVM model file celeste.model

Also tried G:/huginbase/hugin-huild/INSTALL/FILES/share/hugin/data/celeste.model

Also for optimizer command, they say HFOV value is invalid. I tried using

autooptimiser -v 50 -a -l -s -m -o optimised.pto project.pto

and still the same error occurred.

What is this error and what should I do to avoid it?

share|improve this question
1  
Hi koder, welcome to the forum. Your question, though related to photography, is actually about coding, so is more suited to the forum at stackoverflow.com which deals specifically with questions like this. You'll find more people with the relevant expertise who can help you out there. One of the moderators here should be able to migrate your question accordingly. –  Nick Miners Jan 22 '12 at 17:35
3  
@NickMiners: The question is pretty specifically about post-processing photos with Hugin, even though its done with a command line. There is not actually any "programming" involved in the question here...just a bunch of command lines. Just because a command line is involved does not mean this is not photographic post processing, and as far as I can tell, this question is entirely on-topic. We have several members here who use hugin regularly, and one of them should be able to answer this. –  jrista Jan 22 '12 at 17:44
2  
This isn't about coding, it's just asking how to use command line options in a program. He might get an answer there, but I don't feel it's a programming question at all. –  MikeW Jan 22 '12 at 17:45
2  
koder, could you tell us if you're running on a Mac or Windows, and where you have hugin installed? Can you look and tell us the exact path where the file celeste.model is located? –  MikeW Jan 22 '12 at 17:47
1  
@MikeW : I am using Windows. I havent installed Hugin. I have just extracted the files from a zip folder on to my desktop. celeste.model is in the directory \hugin\share\hugin\data\ I dint install hugin because when the installed version doesnt have autopano-sift-c.exe in the bin folder. –  koder Jan 23 '12 at 7:11

1 Answer 1

The command line you typed for celeste should work. What I would look into next is:

  • Confirm that the file celeste.model is in the same folder as celeste_standalone.exe
  • Look from what path you are calling it, and possibly adding the hugin\bin folder in the path for your command line 'SET PATH=%PATH%;c:\huginFolder\bin' Having it in the bin saved me from trouble a few times.

As for the HFOV value is invalid, your command line seems ok. Here is one I know works 'autooptimiser.exe -a -o "output.pto" "input.pto"'

Can you add more info, specifically the first few lines of your input PTO file, something like:

p f2 w3000 h1500 v360 n"JPEG q90"
m g1 i0

i w3168 h4752 f0 a0 b-0.01 c0 d0 e0 p0 r0 v180 y0 u10 n"IMG_2415.tif"
i w3168 h4752 f0 a=0 b=0 c=0 d0 e0 p0 r0 v=0 y0 u10 n"IMG_2416.tif"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.