mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
modified importfile.m so headers so log files with headers can be loaded, fixed getPrecisionRecall.m for a "*=" error by MATLAB
This commit is contained in:
@@ -17,7 +17,7 @@ if exist(GT_file, 'file')
|
||||
display(['Loading GroundTruth ''' GT_file ''' ...']);
|
||||
GroundTruth = imread(GT_file);
|
||||
if max(max(GroundTruth)) == 1
|
||||
GroundTruth*=255;
|
||||
GroundTruth=GroundTruth*255;
|
||||
end
|
||||
else
|
||||
error(['The ground truth ''' GT_file '''doesn''t exist.'])
|
||||
|
||||
@@ -8,6 +8,10 @@ function [Data] = importfile(fileToRead1)
|
||||
% Import the file
|
||||
rawData1 = importdata(fileToRead1);
|
||||
|
||||
if isstruct(rawData1)
|
||||
rawData1=rawData1.data;
|
||||
end
|
||||
|
||||
% For some simple files (such as a CSV or JPEG files), IMPORTDATA might
|
||||
% return a simple array. If so, generate a structure so that the output
|
||||
% matches that from the Import Wizard.
|
||||
|
||||
Reference in New Issue
Block a user