mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +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 ''' ...']);
|
display(['Loading GroundTruth ''' GT_file ''' ...']);
|
||||||
GroundTruth = imread(GT_file);
|
GroundTruth = imread(GT_file);
|
||||||
if max(max(GroundTruth)) == 1
|
if max(max(GroundTruth)) == 1
|
||||||
GroundTruth*=255;
|
GroundTruth=GroundTruth*255;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
error(['The ground truth ''' GT_file '''doesn''t exist.'])
|
error(['The ground truth ''' GT_file '''doesn''t exist.'])
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ function [Data] = importfile(fileToRead1)
|
|||||||
% Import the file
|
% Import the file
|
||||||
rawData1 = importdata(fileToRead1);
|
rawData1 = importdata(fileToRead1);
|
||||||
|
|
||||||
|
if isstruct(rawData1)
|
||||||
|
rawData1=rawData1.data;
|
||||||
|
end
|
||||||
|
|
||||||
% For some simple files (such as a CSV or JPEG files), IMPORTDATA might
|
% 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
|
% return a simple array. If so, generate a structure so that the output
|
||||||
% matches that from the Import Wizard.
|
% matches that from the Import Wizard.
|
||||||
|
|||||||
Reference in New Issue
Block a user