Skip to content

Commit

Permalink
Update scripts to run the registration using the PCLWrapper demo app,…
Browse files Browse the repository at this point in the history
… if available
  • Loading branch information
nmellado committed Sep 28, 2017
1 parent a23527b commit 68d4be6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/run-example.bat
Expand Up @@ -54,10 +54,16 @@
:: -d delta, used to compute the LCP between the two models
:: -t maximum computation time in seconds
:: -n number of samples used for the matching
::
:: When available, also runs the registration using the PCL wrapper

@ setx PATH "%~dp0\..\lib"

..\bin\Super4pcs -i ..\assets\hippo1.obj ..\assets\hippo2.obj -o 0.7 -d 0.01 -t 1000 -n 200 -r super4pcs_fast.obj -m mat_super4pcs_fast.txt
..\bin\Super4pcs -i ..\assets\hippo1.obj ..\assets\hippo2.obj -o 0.7 -d 0.01 -t 1000 -n 200 -r 4pcs_fast.obj -m mat_4pcs_fast.txt -x

if exist ..\bin\Super4PCS-PCLWrapper (
..\bin\Super4PCS-PCLWrapper ..\assets\hippo1.obj ..\assets\hippo2.obj -o 0.7 -d 0.01 -t 1000 -n 200
)

@ PAUSE
16 changes: 16 additions & 0 deletions scripts/run-example.sh
Expand Up @@ -56,9 +56,25 @@
# -d delta, used to compute the LCP between the two models
# -t maximum computation time in seconds
# -n number of samples used for the matching
#
# When available, also runs the registration with the PCL wrapper

export LD_LIBRARY_PATH=../lib/

SPACER="------------------------------"

echo ${SPACER}
echo "Running Super4PCS"
time -p ../bin/Super4PCS -i ../assets/hippo1.obj ../assets/hippo2.obj -o 0.7 -d 0.01 -t 1000 -n 200 -r super4pcs_fast.obj -m mat_super4pcs_fast.txt


echo ${SPACER}
echo "Running 4PCS"
time -p ../bin/Super4PCS -i ../assets/hippo1.obj ../assets/hippo2.obj -o 0.7 -d 0.01 -t 1000 -n 200 -r 4pcs_fast.obj -m mat_4pcs_fast.txt -x


if [ -f ../bin/Super4PCS-PCLWrapper ]; then
echo ${SPACER}
echo "Running PCLWrapper"
../bin/Super4PCS-PCLWrapper ../assets/hippo1.obj ../assets/hippo2.obj -o 0.7 -d 0.01 -t 1000 -n 200
fi

0 comments on commit 68d4be6

Please sign in to comment.