Skip to content

Commit 5caca03

Browse files
committed
fix bug and add doc
1 parent 0e64d9c commit 5caca03

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

demos/roi/get_peak_coordinates.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
roiImage = extractRoiFromAtlas(pwd, 'wang', 'V1v', 'L');
2+
3+
gunzip(fullfile(pwd, 'inputs', '*.gz'));
4+
dataImage = fullfile(pwd, 'inputs', 'TStatistic.nii');
5+
6+
reslicedImages = resliceRoiImages(dataImage, roiImage);
7+
8+
[worldCoord, voxelCoord, maxVal] = getPeakCoordinates(dataImage, reslicedImages);

src/roi/getPeakCoordinates.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
%
88
% [worldCoord, voxelCoord, maxVal] = getPeakCoordinates(dataImage, roiImage, threshold)
99
%
10-
% :param dataImage:
10+
% :param dataImage: data image (beta / t / Z map) to find the maximum in
1111
% :type dataImage: path
1212
%
13-
% :param roiImage:
13+
% :param roiImage: binary mask limiting the volume where to find the peak
1414
% :type roiImage: path
1515
%
1616
% :param threshold: threshold above which peak must be found
@@ -31,7 +31,7 @@
3131

3232
dataImage = args.Results.dataImage;
3333
roiImage = args.Results.roiImage;
34-
threshold = args.Results.criticalT;
34+
threshold = args.Results.threshold;
3535

3636
voxelCoord = nan(1, 3);
3737
worldCoord = nan(1, 3);

0 commit comments

Comments
 (0)