Hi,
If you download the attached pto and run :
cpclean --max-distance "2" -o "./out.pto" "./in.pto"

it revomes 0 control point, even though the max distance is 2.01

I assume cpclean rounds the values and considers 2.01 good enough ?

Problem is because of that, my bash script sometimes works fine and other times 
loops indefinitely. Here's why :
In my script, the user gives a distance threshold. As long as the pto's maximum 
control point distance is above that threshold, the script will run several 
commands including cpclean, in a while loop. More precisely :
while [[ $maxdist > $tolerance ]] ; do
cpclean --max-distance $tolerance1 -o "$pto" "$pto"
autooptimiser -n -o "$pto" "$pto" maxdist=`checkpto "$pto" | grep Maximum | awk 
-F ": " '{print $2}'`
done

So if the user gives 2 as the threshold for the attached pto file, my script 
will never get out of the while loop.

Did I make a wrong assumption about cpclean?
How would you go about this?

-- 
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 on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/oRB81yZFY_b1B4s5JPpWid7flbEFDXcsk5nMyZuJ574nRjsrnmaxlUSZ7CJ-P64NE39UdbAw8-5y3wzMedxsSKfCk9HpTY6pOgrjaAA4TU0%3D%40protonmail.com.

Attachment: in.pto
Description: application/ptoptimizer-script

  • [hugin-ptx] ... 'ChameleonScales' via hugin and other free panoramic software
    • [hugin-... T. Modes
      • Re:... 'ChameleonScales' via hugin and other free panoramic software
        • ... 'ChameleonScales' via hugin and other free panoramic software

Reply via email to