We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330239d commit b3cd282Copy full SHA for b3cd282
tests/test_getPeakCoordinates.m
@@ -10,9 +10,10 @@
10
11
function test_getPeakCoordinates_basic()
12
13
- roiImage = extractRoiFromAtlas(pwd, 'wang', 'V1v', 'L');
+ inputDir = setUpDemoData();
14
+ dataImage = fullfile(inputDir, 'inputs', 'TStatistic.nii');
15
- dataImage = fullfile(demoDir(), 'TStatistic.nii');
16
+ roiImage = extractRoiFromAtlas(pwd, 'wang', 'V1v', 'L');
17
18
reslicedImages = resliceRoiImages(dataImage, roiImage);
19
@@ -22,20 +23,4 @@ function test_getPeakCoordinates_basic()
22
23
assertEqual(voxelCoord, [28 8 24]);
24
assertElementsAlmostEqual(maxVal, 1.6212, 'absolute', 1e-3);
25
- delete('*hemi-L_space-MNI_atlas-wang_label-V1v_mask.*');
26
-
27
-end
28
29
-function value = thisDir()
30
- value = fileparts(mfilename('fullpath'));
31
32
33
-function value = demoDir()
34
35
- value = fullfile(thisDir(), '..', 'demos', 'roi', 'inputs');
36
37
- if exist(fullfile(value, 'TStatistic.nii'), 'file') == 0
38
- gunzip(fullfile(value, '*.gz'));
39
- end
40
41
end
0 commit comments