fixed GT empty error (MATLAB script)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@227 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2011-06-21 21:45:17 +00:00
parent b73f2bd535
commit b1047e5e92

View File

@@ -317,7 +317,7 @@ lcRejected = sum(LogI(:, 8) == 1)
%%
%Precision-Recall graph
GroundTruthFile = [PathPrefix '/' GT_file];
if exist(GroundTruthFile, 'file')
if ~isempty(GT_file) && exist(GroundTruthFile, 'file')
PR = getPrecisionRecall(LogI, LogF, GroundTruthFile, 1.0);
Precision = PR(:,1);