-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from DIDSR/registrationInterface
Registration interface 1. Edit code for dynamic start and stop. It is available for all tasks and input files 2. Update all input files for autoreg and WSI scale. 3. Add GetExecutableFolder.m function to solve the short cut problem 4. Solve compiled version random order problem.
- Loading branch information
Showing
55 changed files
with
2,152 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function [executableFolder] = GetExecutableFolder() | ||
try | ||
if isdeployed | ||
% User is running an executable in standalone mode. | ||
[status, result] = system('set PATH'); | ||
executableFolder = char(regexpi(result, 'Path=(.*?);', 'tokens', 'once')); | ||
% fprintf(1, '\nIn function GetExecutableFolder(), currentWorkingDirectory = %s\n', executableFolder); | ||
else | ||
% User is running an m-file from the MATLAB integrated development environment (regular MATLAB). | ||
executableFolder = pwd; | ||
end | ||
catch ME | ||
errorMessage = sprintf('Error in function %s() at line %d.\n\nError Message:\n%s', ... | ||
ME.stack(1).name, ME.stack(1).line, ME.message); | ||
uiwait(warndlg(errorMessage)); | ||
end | ||
return; | ||
end |
Oops, something went wrong.