Skip to content
Snippets Groups Projects
Commit 1fe9adeb authored by Layton's avatar Layton
Browse files

modified ctcEval1 to find its own path for the ctc eval software

parent 0344475a
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ if ~exist('evalFolder','var') ...@@ -18,6 +18,7 @@ if ~exist('evalFolder','var')
evalFolder='g:/ctcEval'; evalFolder='g:/ctcEval';
end end
end end
[~,targetName,~]=fileparts(strDB); [~,targetName,~]=fileparts(strDB);
tokens=regexp(targetName,'(.*)_(training|challenge)_(\d\d)','tokens'); tokens=regexp(targetName,'(.*)_(training|challenge)_(\d\d)','tokens');
...@@ -75,16 +76,18 @@ if ~exist(gtTarget,'dir') ...@@ -75,16 +76,18 @@ if ~exist(gtTarget,'dir')
copyfile(gtSource,gtTarget); copyfile(gtSource,gtTarget);
end end
[softwareFolder,~,~]=fileparts(mfilename('fullpath'));
if ispc if ispc
TRA='TRAMeasure.exe'; TRA='TRAMeasure.exe';
SEG='SEGMeasure.exe'; SEG='SEGMeasure.exe';
DET='DETMeasure.exe'; DET='DETMeasure.exe';
exePath=fullfile('./','EvaluationSoftware/Win'); exePath = fullfile(softwareFolder,'EvaluationSoftware/win');
else else
TRA='TRAMeasure'; TRA='TRAMeasure';
SEG='SEGMeasure'; SEG='SEGMeasure';
DET='DETMeasure'; DET='DETMeasure';
exePath=fullfile('./','EvaluationSoftware/Linux'); exePath = fullfile(softwareFolder,'EvaluationSoftware/Linux');
end end
imageFilename=dir(fullfile(evalFolder,dsName,[dsID '_RES'],'mask*0.tif')); imageFilename=dir(fullfile(evalFolder,dsName,[dsID '_RES'],'mask*0.tif'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment