-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspm_add.m
23 lines (22 loc) · 1.08 KB
/
spm_add.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function varargout = spm_add(varargin)
% add a series of images - a compiled routine
% FORMAT s = spm_add(VI,VO)
% VI - Vector of mapped volumes (from spm_map or spm_vol).
% VO - Description of output volume that gets passed to
% spm_write_plane.m
% flags - Flags can be:
% 'm' - masks the mean to zero or NaN wherever
% a zero occurs in the input images.
% s - Scalefactor for output image.
%_______________________________________________________________________
%
% spm_add computes a sum of a set of image volumes to produce an
% integral image that is written to a named file (VI.fname).
%
% A mean can be effected by modifying the scalefactors (and offsets) of
% VI (see spm_mean_ui for an example). A weighted sum can be effected by
% using different weightings for image scalefactors.
%_______________________________________________________________________
% @(#)spm_add.m 2.7 John Ashburner (from JB's original spm_mean.c) 99/04/19
%-This is merely the help file for the compiled routine
error('spm_add.c not compiled - see spm_MAKE.sh')