Permalink
Browse files

Fix dir names.

Minor bug fix.
  • Loading branch information...
qianyizh
qianyizh committed Jun 9, 2015
1 parent 0942cee commit e90c709152420748fb807cc8db8fcd2707b88227
Showing with 5 additions and 4 deletions.
  1. +5 −4 Matlab_Toolbox/Example/demo_mrRegistrationEvaluation.m
@@ -1,7 +1,8 @@
addpath( '../Core' );
names = { 'opencv', '4pcs', 'super4pcs', 'pcl', 'pcl_modified' };
basedir = 'Data/RegistrationEvaluation/synth';
basedir = 'Data/RegistrationEvaluation/';
dirnames = { 'livingroom1', 'livingroom2', 'office1', 'office2' };
names_num = size( names, 2 );
synth_num = 4;
@@ -10,10 +11,10 @@
precision = zeros( synth_num, names_num );
for i = 1 : synth_num
gt = mrLoadLog( [ basedir, num2str( i ), '/gt.log' ] );
gt_info = mrLoadInfo( [ basedir, num2str( i ), '/gt.info' ] );
gt = mrLoadLog( [ basedir, dirnames{i}, '/gt.log' ] );
gt_info = mrLoadInfo( [ basedir, dirnames{i}, '/gt.info' ] );
for k = 1 : names_num
result = mrLoadLog( [ basedir, num2str( i ), '/', names{k}, '.log' ] );
result = mrLoadLog( [ basedir, dirnames{i}, '/', names{k}, '.log' ] );
[ recall( i, k ), precision( i, k ) ] = ...
mrEvaluateRegistration( result, gt, gt_info );
end

0 comments on commit e90c709

Please sign in to comment.