Skip to content

Commit d9d48f5

Browse files
committed
keep track of segmentation batch number
1 parent 21c2951 commit d9d48f5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

demos/MoAE/moae_01_bids_app.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
cpp_spm();
5151

5252
%% Dopwnload the dataset
53-
download_data = true;
53+
download_data = false;
5454
clean = true;
5555
download_moae_ds(download_data, clean);
5656

src/batches/preproc/setBatchSegmentation.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function matlabbatch = setBatchSegmentation(matlabbatch, opt, imageToSegment)
1+
function [matlabbatch, opt] = setBatchSegmentation(matlabbatch, opt, imageToSegment)
22
%
33
% Creates a batch to segment the anatomical image
44
%

src/workflows/preproc/bidsSegmentSkullStrip.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
opt.segment.do = true;
5858
end
5959

60-
matlabbatch = setBatchSegmentation(matlabbatch, opt);
60+
[matlabbatch, opt] = setBatchSegmentation(matlabbatch, opt);
6161

6262
matlabbatch = setBatchSkullStripping(matlabbatch, BIDS, opt, subLabel);
6363

src/workflows/preproc/bidsSpatialPrepro.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888

8989
anatFile = matlabbatch{1}.cfg_basicio.cfg_named_file.files{1}{1};
9090

91+
% TODO refactor with bidsSegmentSkullstrip
9192
%% Skip segmentation / skullstripping if done previously
9293
if skullstripDo && ~opt.skullstrip.force && skullstrippingAlreadyDone(anatFile, BIDS)
9394
opt.skullstrip.do = false;
@@ -100,7 +101,7 @@
100101
opt.segment.do = true;
101102
end
102103

103-
matlabbatch = setBatchSegmentation(matlabbatch, opt);
104+
[matlabbatch, opt] = setBatchSegmentation(matlabbatch, opt);
104105

105106
matlabbatch = setBatchSkullStripping(matlabbatch, BIDS, opt, subLabel);
106107
opt.orderBatches.skullStripping = numel(matlabbatch) - 1;

0 commit comments

Comments
 (0)