Created
June 24, 2010 15:26
-
-
Save steko/451579 to your computer and use it in GitHub Desktop.
Procedura per Bundler e PMVS2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Portarsi nella directory dove si trovano le immagini. | |
cd foto | |
# Ridimensionare le immagini con ImageMagick | |
for i in *.JPG; do mogrify -geometry 50% $i; done | |
## Bundler | |
# Copiare l'eseguibile di SIFT nella directory dei binari di Bundler | |
cp ~/Scaricati/siftDemoV4/sift ~/Scaricati/bundler-v0.4-source/bin/ | |
# Eseguire Bundler. È necessario indicare LD_LIBRARY_PATH | |
LD_LIBRARY_PATH=~/Scaricati/bundler-v0.4-source/bin ~/Scaricati/bundler-v0.4-source/RunBundler.sh | |
# Eseguire Bundle2PMVS | |
LD_LIBRARY_PATH=~/Scaricati/bundler-v0.4-source/bin ~/Scaricati/bundler-v0.4-source/bin/Bundle2PMVS | |
## PMVS2 | |
# Modificare prep_pmvs.sh inserendo il percorso di Bundler, e poi eseguirlo | |
sh pmvs/prep_pmvs.sh | |
# Creare un link simbolico a libgfortran.so e liblapack.so (quella inclusa nel pacchetto è tarocca) | |
rm ~/Scaricati/cmvs/program/main/liblapack.so.3 | |
ln -s /usr/lib/lapack/liblapack.so ~/Scaricati/cmvs/program/main/liblapack.so.3 | |
ln -s /usr/lib/libgfortran.so.3 ~/Scaricati/cmvs/program/main/libgfortran.so.3 | |
# Eseguire CMVS | |
LD_LIBRARY_PATH=~/Scaricati/cmvs/program/main ~/Scaricati/cmvs/program/main/cmvs pmvs/ | |
# Eseguire genOption | |
LD_LIBRARY_PATH=~/Scaricati/cmvs/program/main ~/Scaricati/cmvs/program/main/genOption | |
# Eseguire PMVS2 | |
LD_LIBRARY_PATH=~/Scaricati/cmvs/program/main ~/Scaricati/cmvs/program/main/pmvs2 pmvs/ option-0000 | |
# Il file option-0000.ply si trova in ./pmvs/models/ | |
########### | |
# THE END # | |
########### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment