Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Exercise_BrainMRI_AgeClassif_DL_Work.mlx
Binary file not shown.
11 changes: 2 additions & 9 deletions prepare2DImageDataset.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,7 @@
end

% Create classification image set folders
if ~isempty(dstPath)
i = 1;
t = dstPath;
while exist(t,'dir')
t = dstPath+"_"+i;
i = i+1;
end
dstPath = i;
if ~isempty(dstPath)
assert(~exist(dstPath,'dir'));
mkdir(dstPath);
end
Expand Down Expand Up @@ -153,4 +146,4 @@
end
end

% Copyright 2020-2021 The MathWorks, Inc.
% Copyright 2020-2021 The MathWorks, Inc.