[ptx] autopano-sift-1.6-win-1.zip, No more Gtk#. Windows users please test :)

Axel Wernicke axel.wernicke at gmx.de
Tue Sep 21 21:13:29 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Am 21.09.2004 um 08:20 schrieb Ippei UKAI:

> Thanks.
>
> Now my HuginOSX calles autopano.exe

so, can we expect a new build on your website soon :)  - please, it  
seems you are one of the very few that can build on OS X!

> I had to specify the autopano/generatekeys in full path in .sh because  
> the program couldn't find it by default:
> #			$MONO generatekeys.exe $arg $FILENAME $SIZE
> 			$MONO ~/Download/hugin/autopano-sift-1.6-win-1/bin/generatekeys.exe  
> $arg $FILENAME $SIZE

yeah, same for me. Therefore I definded a variable that contains the  
path...

MONO=mono
SIFTTOOLS=/Applications/Grafik/autopano-sift-1.6/bin


>
> So far I got following error, and mono crashed. But anyway this is a  
> first big step, I think.
>
> Remaining arguments (12):
> --> `o:s:p:nch'
> --> `-l'
> --> `output:,size:,points:,noransac,clean,help'
> --> `-n'
> -->  
> `/Users/ippei/Download/hugin/autopano-sift-1.6-win-1/bin/autopano- 
> complete.sh'
> --> `--'
> --> `-o'
> --> `autopano_result_tempfile.pto'
> --> `-p'
> --> `10'
> --> `/Users/ippei/Desktop/DSC01131.JPG'
> --> `/Users/ippei/Desktop/DSC01132.JPG'
> SIFT Keypoint Generation

OK, I can help with this. The command that should parse the arguments  
dosen't work on OS X as it does on Linux. I simplified it to

TEMP=`getopt o:s:p:nch $*`

which means that the options -o -s -p and -n -c -h are recognized  
correctly, but not the long names -size anymore...
... may be there is a smarter (working) solution

>
>
> Unhandled Exception: System.TypeInitializationException: An exception  
> was thrown by the type initializer for System.Drawing.GDIPlus --->  
> System.DllNotFoundException: gdiplus.dll
> in <0x000e0> (wrapper managed-to-native)  
> System.Drawing.GDIPlus:GdiplusStartup  
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStart 
> upOutput&)
> in <0x000b0> System.Drawing.GDIPlus:.cctor ()
> --- End of inner exception stack trace ---
>

as far as I understood Sebastian the non gtk version  of  
generatekeys.exe is only working on .NET but not on mono ??
I switched back to the gtk version and thatone worked seamless.

hope that helps a bit,

Axel!

P.S: the complete autopano-complete.sh that is working for me on  
panther 10.3:

#!/bin/sh

# by Pablo d'Angelo <pablo.dangelo at web.de>

MONO=mono
SIFTTOOLS=/Applications/Grafik/autopano-sift-1.6/bin

usage()
{
	echo "usage: autopano-complete.sh [options] -o panoproject.pto image1  
image2 [...]"
	echo
	echo "options can be:"
	echo "  -o | --output   name    filename of created panorama project"
	echo "  -s | --size     number  downsize images until width and height  
is"
	echo "                          smaller than number, default 700"
	echo "  -p | --points   number  number of generated control points  
between,"
	echo "                          each pair, default: 10"
	echo "  -n | --noransac         no ransac detection, useful for  
fisheye images"
	echo "  -c | --clean            do not reuse keypoints detected in  
earlier runs,"
	echo "                          deletes old keypoint files."
	exit 1
}

#TEMP=`getopt -o o:s:p:nch -l output:,size:,points:,noransac,clean,help  
- -n "$0" -- "$@"`
TEMP=`getopt o:s:p:nch $*`

if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi

# Note the quotes around `$TEMP': they are essential!
eval set -- "$TEMP"

POINTS=10;
RANSAC=1;
CLEAN=0;
#SIZE=800;
SIZE=700;

while true ; do
         case "$1" in
                 -o|--output) PANOFILE=$2; shift 2;;
                 -s|--size)   SIZE=$2; shift 2;;
                 -p|--points) POINTS=$2; shift 2 ;;
                 -n|--noransac) RANSAC=0; shift 1;;
                 -c|--clean) CLEAN=1; shift 1;;
                 -h|--help) usage; shift 1;;
                 --) shift ; break ;;
                 *) echo "Command line parsing error at: $1" ; exit 1 ;;
         esac
done

NARG=$#
if [ $NARG -lt 2 ]; then
	usage
	exit 1
fi


echo "Remaining arguments ($#):"
for arg do echo '--> '"\`$arg'" ; done

TMP=/tmp

KEYFILES=""
for arg do
#        FILENAME=$(echo -n $arg | sed -r 's at .+/([^/]+$)@\1@').key.gz
	FILENAME=$(echo -n $arg ).key.gz
	KEYFILES="$KEYFILES $FILENAME"
	if [ -f $FILENAME ]; then
		if [ $CLEAN -ne 0 ]; then
			
			$MONO $SIFTTOOLS/generatekeys.exe $arg $FILENAME $SIZE
		else
			echo "Using previously generated keypoint file: $FILENAME"
		fi
	else
		$MONO $SIFTTOOLS/generatekeys.exe $arg $FILENAME $SIZE
	fi
done

echo "keyfiles: $KEYFILES"
ARG="--ransac $RANSAC --maxmatches $POINTS --align";
$MONO $SIFTTOOLS/autopano.exe $ARG $PANOFILE $KEYFILES
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBUItwR9mXLVsAbiQRAjxtAJ9ryG8svKqbR7J2+RAPv771efRlsgCguOrG
0B2NHFiHznYtVgI4oIY/ZVs=
=W+ri
-----END PGP SIGNATURE-----



More information about the ptX mailing list