-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathspm_get_lm.m
24 lines (22 loc) · 941 Bytes
/
spm_get_lm.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function varargout = spm_get_lm(varargin)
% Identification of local maxima in 3(or 2)D volume - a compiled routine
% FORMAT idx = spm_get_lm(vol,list)
%
% Routine that identifies which voxels in a list of coordinates that are
% local maxima, and returns a list of indices into the coordinate list for
% those maxima.
%
% Input:
% vol - 3(or 2)D volume of statistics (e.g. t or F)
% list - 3xn (or 2xn) list of voxel coordinates of tentative local
% maxima.
%
% Output:
% idx - Index into list such that list(:,idx) returns those
% coordinates that are truly local maxima.
%__________________________________________________________________________
% Copyright (C) 2002-2014 Wellcome Trust Centre for Neuroimaging
% Jesper Andersson
% $Id: spm_get_lm.m 6015 2014-05-23 15:46:19Z guillaume $
%-This is merely the help file for the compiled routine
error('spm_get_lm.c not compiled - see Makefile');