plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | spm/spm5-master | spm_figure.m | .m | spm5-master/spm_figure.m | 30,162 | utf_8 | 12f9a21067b2333626a8f244f5655211 | function varargout=spm_figure(varargin)
% Setup and callback functions for Graphics window
% FORMAT varargout=spm_figure(varargin)
% - An embedded callback, multi-function function
% - For detailed programmers comments, see format specifications
% in main body of code
%______________________________... |
github | spm/spm5-master | spm_config_runbatch.m | .m | spm5-master/spm_config_runbatch.m | 1,054 | utf_8 | c302aa5fcdb0ebe2c500ee8dcace2b9e | function opts = spm_config_runbatch
% Configuration file for running batched jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Darren Gitelman
% $Id: spm_config_runbatch.m 1032 2007-12-20 14:45:55Z john $
data.type = 'files... |
github | spm/spm5-master | spm_P_RF.m | .m | spm5-master/spm_P_RF.m | 5,895 | utf_8 | 93c3a6c9cdea397f20820b00dd056112 | function [P,p,Em,En,EN] = spm_P_RF(c,k,Z,df,STAT,R,n)
% Returns the [un]corrected P value using unifed EC theory
% FORMAT [P p Em En EN] = spm_P_RF(c,k,Z,df,STAT,R,n)
%
% c - cluster number
% k - extent {RESELS}
% Z - height {minimum over n values}
% df - [df{interest} df{error}]
% STAT - Statistical f... |
github | spm/spm5-master | spm_dicom_headers.m | .m | spm5-master/spm_dicom_headers.m | 19,177 | utf_8 | 881b6df84445c830fb8c99d036502ce3 | function hdr = spm_dicom_headers(P, essentials)
% Read header information from DICOM files
% FORMAT hdr = spm_dicom_headers(P [,essentials])
% P - array of filenames
% essentials - if true, then only save the essential parts of the header
% hdr - cell array of headers, one element for each file.
%
% Contents of heade... |
github | spm/spm5-master | spm_config_coreg.m | .m | spm5-master/spm_config_coreg.m | 13,182 | utf_8 | f9c6e0cc429ce2dacdee008d8a00cc6e | function opts = spm_config_coreg
% Configuration file for coregister jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_coreg.m 1032 2007-12-20 14:45:55Z john $
ref.type = 'files';
ref.name =... |
github | spm/spm5-master | spm_image.m | .m | spm5-master/spm_image.m | 20,429 | utf_8 | 891123a6397852f97de13a1b3463ab74 | function spm_image(op,varargin)
% image and header display
% FORMAT spm_image
%_______________________________________________________________________
%
% spm_image is an interactive facility that allows orthogonal sections
% from an image volume to be displayed. Clicking the cursor on either
% of the three images mov... |
github | spm/spm5-master | bst_message_window.m | .m | spm5-master/bst_message_window.m | 17,952 | utf_8 | 351c51b02858e087e1bb53dae05b3986 | function varargout = bst_message_window(varargin)
%BST_MESSAGE_WINDOW - Application M-file for bst_message_window.fig, with NON CALLBACKS
% function varargout = bst_message_window(varargin)
% FIG = BST_MESSAGE_WINDOW launch bst_message_window GUI.
% BST_MESSAGE_WINDOW('callback_name', ...) invoke the named callba... |
github | spm/spm5-master | spm_transverse.m | .m | spm5-master/spm_transverse.m | 14,752 | utf_8 | 235f415df5b92c21eb90a49c70ebbcbb | function spm_transverse(varargin)
% Rendering of regional effects [SPM{T/F}] on transverse sections
% FORMAT spm_transverse('set',SPM,hReg)
% FORMAT spm_transverse('setcoords',xyzmm)
% FORMAT spm_transverse('clear')
%
% SPM - structure containing SPM, distribution & filtering details
% about the excursion s... |
github | spm/spm5-master | spm_select.m | .m | spm5-master/spm_select.m | 41,694 | utf_8 | 3afb406cb219867c0fbed6974862cc3a | function [t,sts] = spm_select(varargin)
% File selector
% FORMAT [t,sts] = spm_select(n,typ,mesg,sel,wd,filt,frames)
% n - Number of files
% A single value or a range. e.g.
% 1 - Select one file
% Inf - Select any number of files
% [1 Inf] - Select 1 to Inf ... |
github | spm/spm5-master | spm_eeg_scalp2d_ext.m | .m | spm5-master/spm_eeg_scalp2d_ext.m | 6,685 | utf_8 | 9cd4f0e11f4b8f2daa8a686d44a20f42 | function varargout = spm_eeg_scalp2d_ext(varargin)
% SPM_EEG_SCALP2D_EXT M-file for spm_eeg_scalp2d_ext.fig
% SPM_EEG_SCALP2D_EXT, by itself, creates a new SPM_EEG_SCALP2D_EXT or raises the existing
% singleton*.
%
% H = SPM_EEG_SCALP2D_EXT returns the handle to a new SPM_EEG_SCALP2D_EXT or the handle to... |
github | spm/spm5-master | spm_eeg_inv_displTes.m | .m | spm5-master/spm_eeg_inv_displTes.m | 3,729 | utf_8 | 8c8ce34a4598902e61b0c9f1559207fe | function [p,hFig] = spm_eeg_inv_displTes(tsurf,c)
% FORMAT [p,f] = spm_eeg_inv_displTes(tsurf,c)
%
% Display a tessalated surface, with color c if provided :
% if c is not provided, it uses 1 color for all surface.
% 'spm_eeg_inv_displTes' returns handle to patch & figure
%_____________________________________________... |
github | spm/spm5-master | spm_config_preproc.m | .m | spm5-master/spm_config_preproc.m | 27,234 | utf_8 | df3bace7f557a516e2708fbde2621df0 | function job = spm_config_preproc
% Configuration file for Segment jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_preproc.m 1032 2007-12-20 14:45:55Z john $
%____________________________... |
github | spm/spm5-master | bst_headmodeler.m | .m | spm5-master/bst_headmodeler.m | 111,935 | utf_8 | a5f8e1434768799cd03d003a831e2737 | function [varargout] = bst_headmodeler(varargin);
%BST_HEADMODELER - Solution to the MEG/EEG forward problem
% function [varargout] = bst_headmodeler(varargin);
% Authorized syntax:
% [G, OPTIONS] = bst_headmodeler(StudyFile, OPTIONS);
% [G, OPTIONS] = bst_headmodeler(OPTIONS);
% [OPTIONS] = bst_headmodeler;
%
% ------... |
github | spm/spm5-master | spm_bias_ui.m | .m | spm5-master/spm_bias_ui.m | 5,571 | utf_8 | e83510dcfcaf0a173e4edc8fdcceef8e | function spm_bias_ui(P)
% Non-uniformity correct images.
%
% The objective function is related to minimising the entropy of
% the image histogram, but is modified slightly.
% This fixes the problem with the SPM99 non-uniformity correction
% algorithm, which tends to try to reduce the image intensities. As
% the field w... |
github | spm/spm5-master | eeg_sph.m | .m | spm5-master/eeg_sph.m | 20,284 | utf_8 | 39633c72045d669d24460bbb0e2cee96 | function G = eeg_sph(L,Channel,Param,Order,Verbose,varargin);
%EEG_SPH - Calculate the electric potential , spherical head, arbitrary orientation
% function G = eeg_sph(L,Channel,Param,Order,Verbose,varargin);
% function G = eeg_sph(L,Channel,Param,Order);
% L is 3 x nL, each column a source location
% Channel is the c... |
github | spm/spm5-master | spm_config_realign.m | .m | spm5-master/spm_config_realign.m | 18,757 | utf_8 | 4dc0590fa5df15dcda89cfc0de14114e | function opts = spm_config_realign
% Configuration file for realign jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_realign.m 751 2007-02-28 10:56:59Z volkmar $
%_________________________... |
github | spm/spm5-master | spm_eeg_inv_imag_api.m | .m | spm5-master/spm_eeg_inv_imag_api.m | 15,750 | utf_8 | 8085f6df4d7d941d816f7d6411ecbbdc | function varargout = spm_eeg_inv_imag_api(varargin)
% SPM_EEG_INV_IMAG_API M-file for spm_eeg_inv_imag_api.fig
% FIG = SPM_EEG_INV_IMAG_API launch spm_eeg_inv_imag_api GUI.
% SPM_EEG_INV_IMAG_API('callback_name', ...) invoke the named callback.
% Last Modified by GUIDE v2.5 09-Jan-2008 16:12:40
% Copyright (C) 2... |
github | spm/spm5-master | spm_smoothto8bit.m | .m | spm5-master/spm_smoothto8bit.m | 2,376 | utf_8 | a51643d7766b47182eafff1948680218 | function VO = spm_smoothto8bit(V,fwhm)
% 3 dimensional convolution of an image to 8bit data in memory
% FORMAT VO = spm_smoothto8bit(V,fwhm)
% V - mapped image to be smoothed
% fwhm - FWHM of Guassian filter width in mm
% VO - smoothed volume in a form that can be used by the
% spm_*_vol.mex* functions.... |
github | spm/spm5-master | spm_config_fmri_design.m | .m | spm5-master/spm_config_fmri_design.m | 44,802 | utf_8 | 476fe235b583f0a77b9a767e526929e3 | function conf = spm_config_fmri_design
% Configuration file for specification of fMRI model
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Darren Gitelman and Will Penny
% $Id: spm_config_fmri_design.m 1016 2007-12-03 12:51:33... |
github | spm/spm5-master | spm_defs.m | .m | spm5-master/spm_defs.m | 9,319 | utf_8 | 92fb4adf7d39d590d189b142d2912e4b | function spm_defs(job)
% Various deformation field utilities.
% FORMAT spm_defs(job)
% job - a job created via spm_config_defs.m and spm_jobman.m
%
% See spm_config_defs.m for more information.
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging N... |
github | spm/spm5-master | spm_sp.m | .m | spm5-master/spm_sp.m | 38,364 | utf_8 | adb92133e990f9484e8215c6e97e5080 | function varargout = spm_sp(varargin)
% Orthogonal (design) matrix space setting & manipulation
% FORMAT varargout = spm_spc(action,varargin)
%
% This function computes the different projectors related to the row
% and column spaces X. It should be used to avoid redundant computation
% of svd on large X matrix. It is ... |
github | spm/spm5-master | spm_config_dicom.m | .m | spm5-master/spm_config_dicom.m | 5,010 | utf_8 | a78fea091fd42391c4ba7d36f53f0289 | function opts = spm_config_dicom
% Configuration file for dicom import jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_dicom.m 2300 2008-10-06 11:16:30Z guillaume $
%_____________________... |
github | spm/spm5-master | spm_dicom_essentials.m | .m | spm5-master/spm_dicom_essentials.m | 2,998 | utf_8 | 73532b1b79cbf320fa7ba72709659e78 | function hdr1 = spm_dicom_essentials(hdr0)
% Remove unused fields from DICOM header
% FORMAT hdr1 = spm_dicom_essentials(hdr0)
% hdr0 - original DICOM header
% hdr1 - Stripped down DICOM header.
%
% With lots of DICOM files, the size of all the headers can become too
% big for all the fields to be saved. The idea here... |
github | spm/spm5-master | spm_config_factorial_design.m | .m | spm5-master/spm_config_factorial_design.m | 68,674 | utf_8 | 7f82700d08ffaff7cd9e0dabd4c20de9 | function conf = spm_config_factorial_design
% Configuration file for specification of factorial designs
%
% This function configures the design matrix (describing the general
% linear model), data specification, and other parameters necessary for
% the statistical analysis. These parameters are saved in a
% configurati... |
github | spm/spm5-master | spm_ecat2nifti.m | .m | spm5-master/spm_ecat2nifti.m | 16,103 | utf_8 | 4cc89d7d1ccc8140385d57f70fb567fa | function N = spm_ecat2nifti(fname,opts)
% Import ECAT 7 images from CTI PET scanners.
% FORMAT N = spm_ecat2nifti(fname)
% fname - name of ECAT file
% _______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner & Roger G... |
github | spm/spm5-master | spm_config_fmri_est.m | .m | spm5-master/spm_config_fmri_est.m | 27,815 | utf_8 | c8488b2513dccecb54fef8c96cdf60fb | function conf = spm_config_fmri_est
% Configuration file for estimation of fMRI model
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Darren Gitelman and Will Penny
% $Id: spm_config_fmri_est.m 832 2007-06-22 11:33:31Z will $
... |
github | spm/spm5-master | spm_platform.m | .m | spm5-master/spm_platform.m | 8,489 | utf_8 | 1f602bafb359d64bef775a8d7b66b76d | function varargout=spm_platform(varargin)
% Platform specific configuration parameters for SPM
%
% FORMAT ans = spm_platform(arg)
% arg - optional string argument, can be
% - 'bigend' - return whether this architecture is bigendian
% - Inf - is not IEEE floating point
% ... |
github | spm/spm5-master | spm_config_fmri_data.m | .m | spm5-master/spm_config_fmri_data.m | 5,006 | utf_8 | 38c392121fbd8c522ef579797945a857 | function conf = spm_config_fmri_data
% Configuration file for specification of fMRI model
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Darren Gitelman and Will Penny
% $Id: spm_config_fmri_data.m 766 2007-03-15 14:09:30Z vol... |
github | spm/spm5-master | spm_preproc.m | .m | spm5-master/spm_preproc.m | 20,570 | utf_8 | 65a2123b974d0b044cd06712ed982964 | function results = spm_preproc(varargin)
% Combined Segmentation and Spatial Normalisation
%
% FORMAT results = spm_preproc(V,opts)
% V - image to work with
% opts - options
% opts.tpm - n tissue probability images for each class
% opts.ngaus - number of Gaussians per class (n+1 classes)
% opts.warpreg ... |
github | spm/spm5-master | spm_preproc_write.m | .m | spm5-master/spm_preproc_write.m | 8,606 | utf_8 | 81348572564ad18beb736b2ebde90b4b | function spm_preproc_write(p,opts)
% Write out VBM preprocessed data
% FORMAT spm_preproc_write(p,opts)
% p - results from spm_prep2sn
% opts - writing options. A struct containing these fields:
% biascor - write bias corrected image
% GM - flags for which images should be written
% WM ... |
github | spm/spm5-master | spm_config_contrasts.m | .m | spm5-master/spm_config_contrasts.m | 31,917 | utf_8 | 38447033c92a1a4cb1f381be46468bc5 | function con = spm_config_contrasts
% Configuration file for contrast jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Darren Gitelman
% $Id: spm_config_contrasts.m 948 2007-10-15 21:37:49Z Darren $
%_____________________... |
github | spm/spm5-master | spm.m | .m | spm5-master/spm.m | 47,017 | utf_8 | c70b7f4583a4385043a1d626f2c05867 | function varargout=spm(varargin)
% SPM: Statistical Parametric Mapping (startup function)
%_______________________________________________________________________
% ___ ____ __ __
% / __)( _ \( \/ )
% \__ \ )___/ ) ( Statistical Parametric Mapping
% (___/(__) (_/\/\_) SPM - http://www.fil.ion.ucl.ac.uk/... |
github | spm/spm5-master | spm_orthviews.m | .m | spm5-master/spm_orthviews.m | 68,912 | utf_8 | 1dc045bfb0614e8391a168a981d1b05f | function varargout = spm_orthviews(action,varargin)
% Display Orthogonal Views of a Normalized Image
% FORMAT H = spm_orthviews('Image',filename[,position])
% filename - name of image to display
% area - position of image
% - area(1) - position x
% - area(2) - position y
% - area... |
github | spm/spm5-master | spm_FcUtil.m | .m | spm5-master/spm_FcUtil.m | 30,335 | utf_8 | e21305cc85524f7992a76dc648ebb11f | function varargout = spm_FcUtil(varargin)
% Contrast utilities
% FORMAT varargout = spm_FcUtil(action,varargin)
%_______________________________________________________________________
%
% spm_FcUtil is a multi-function function containing various utilities
% for contrast construction and manipulation. In general, it a... |
github | spm/spm5-master | spm_read_hdr.m | .m | spm5-master/spm_read_hdr.m | 5,383 | utf_8 | 97dd94a3164b5766dcc739ab2cdd041d | function [hdr,otherendian] = spm_read_hdr(fname)
% Read (SPM customised) Analyze header
% FORMAT [hdr,otherendian] = spm_read_hdr(fname)
% fname - .hdr filename
% hdr - structure containing Analyze header
% otherendian - byte swapping necessary flag
%_______________________________________________________... |
github | spm/spm5-master | spm_eeg_inv_visu3D_api.m | .m | spm5-master/spm_eeg_inv_visu3D_api.m | 26,874 | utf_8 | 54b206a78840c7f9488c6600fa85999b | function varargout = spm_eeg_inv_visu3D_api(varargin)
% SPM_EEG_INV_VISU3D_API M-file for spm_eeg_inv_visu3D_api.fig
% - FIG = SPM_EEG_INV_VISU3D_API launch spm_eeg_inv_visu3D_api GUI.
% - D = SPM_EEG_INV_VISU3D_API(D) open with D
% - SPM_EEG_INV_VISU3D_API(filename) where filename is the eeg/meg .mat file
% - SPM_EE... |
github | spm/spm5-master | spm_load.m | .m | spm5-master/spm_load.m | 1,192 | utf_8 | dd89d9c3959f433fc4eefb539b6c1560 | function [x] = spm_load(f)
% function to load ascii file data as matrix
% FORMAT [x] = spm_load(f)
% f - file {ascii file containing a regular array of numbers
% x - corresponding data matrix
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging N... |
github | spm/spm5-master | spm_config_norm.m | .m | spm5-master/spm_config_norm.m | 20,935 | utf_8 | b8b78e7c46191b433681134e138b9c25 | function opts = spm_config_norm
% Configuration file for normalise jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_norm.m 1032 2007-12-20 14:45:55Z john $
%_______________________________... |
github | spm/spm5-master | spm_reslice.m | .m | spm5-master/spm_reslice.m | 14,569 | utf_8 | 6fed692ad7fdef9eb860ab513323f73d | function spm_reslice(P,flags)
% Rigid body reslicing of images
% FORMAT spm_reslice(P,flags)
%
% P - matrix of filenames {one string per row}
% All operations are performed relative to the first image.
% ie. Coregistration is to the first image, and resampling
% of images is into the space o... |
github | spm/spm5-master | spm_config_defs.m | .m | spm5-master/spm_config_defs.m | 9,994 | utf_8 | 2b2b68477701f342d0f333362d8fb2ec | function conf = spm_config_defs
% Configuration file for deformation jobs.
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_defs.m 1032 2007-12-20 14:45:55Z john $
entry = inline(['struct(''type... |
github | spm/spm5-master | spm_showdoc.m | .m | spm5-master/spm_showdoc.m | 4,017 | utf_8 | 63defc367211a2209a2d1710248b6cdc | function spm_showdoc(c)
% Show SPM documentation
%
% This function extracts and displays SPM documentation.
%
% Example usage:
% diary('spmdoc.txt'); spm_showdoc; diary off
%
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Jo... |
github | spm/spm5-master | spm_maff.m | .m | spm5-master/spm_maff.m | 11,342 | utf_8 | 137adfbac77cee275f3852ad16738cf3 | function [M,h] = spm_maff(varargin)
% Affine registration to MNI space using mutual information
% FORMAT M = spm_maff(P,samp,x,b0,MF,M,regtyp,ff)
% P - filename or structure handle of image
% x - cell array of {x1,x2,x3}, where x1 and x2 are
% co-ordinates (from ndgrid), and x3 is a list of
% ... |
github | spm/spm5-master | spm_config_movefile.m | .m | spm5-master/spm_config_movefile.m | 2,999 | utf_8 | 5669e37f39c3defe8479460f98d0e80b | function opts = spm_config_movefile
% Configuration file for move file function
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Volkmar Glauche
% $Id: spm_config_movefile.m 549 2006-06-07 12:37:29Z volkmar $
%_________________... |
github | spm/spm5-master | spm_justify.m | .m | spm5-master/spm_justify.m | 6,226 | utf_8 | 49239b75dcd1c0bebd8523ee21724d50 | function out = spm_justify(varargin)
% SPM_JUSTIFY Justifies a text string
% OUT = SPM_JUSTIFY(N,TXT) justifies text string TXT to
% the length specified by N.
%
% OUT = SPM_JUSTIFY(OBJ,TXT) justifies text string to
% the width of the OBJ in characters - 1.
%
% If TXT is a cell array, then each element i... |
github | spm/spm5-master | spm_diff.m | .m | spm5-master/spm_diff.m | 4,445 | utf_8 | 4511e813264b278c428bfab7ce2324fa | function [varargout] = spm_diff(varargin)
% matrix high-order numerical differentiiation
% FORMAT [dfdx] = spm_diff(f,x,...,n,[V])
%
% f - [inline] function f(x{1},...)
% x - input argument[s]
% n - arguments to differentiate w.r.t.
%
% dfdx - df/dx{i} ; n = i
% dfdx{p}...{q... |
github | spm/spm5-master | spm_config_eeg_filter.m | .m | spm5-master/spm_config_eeg_filter.m | 1,124 | utf_8 | f4f6f38824ad861a9e282c83b29f1a82 | function S = spm_config_eeg_filter
% configuration file for EEG Filtering
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
%
% $Id: spm_config_eeg_filter.m 112 2005-05-04 18:20:52Z john $
D = struct('type','files','name','File N... |
github | spm/spm5-master | os_meg.m | .m | spm5-master/os_meg.m | 29,178 | utf_8 | a416129ad14306a2e88665ae304c934e | function G = os_meg(L,Channel,Param,Order,imegsens,irefsens,Verbose);
%OS_MEG - Calculate the (overlapping) sphere models for MEG
% function G = os_meg(L,Channel,Param,Order,imegsens,irefsens,Verbose);
% function G = os_meg(L,Channel,Param,Order,imegsens,irefsens);
% function G = os_meg(L,Channel,Param,Order);
% Modifi... |
github | spm/spm5-master | spm_eeg_inv_Lana.m | .m | spm5-master/spm_eeg_inv_Lana.m | 4,801 | utf_8 | 6c3018b4e87db5b117f417660e7b28bb | function [Lan,nit]=spm_eeg_inv_Lana(XYZmm,SseXYZ,Rsc,Rsk,Rbr,sigma)
% FUNCTION Lan,nit]=spm_eeg_inv_Lana(XYZmm,SseXYZ,Rsc,Rsk,Rbr)
% Calculates the leadfield in a 3-shell sphere head model for a set of
% distributed dipoles. As this is a spherical model, the solution is analytical
% but it relies on a truncated infini... |
github | spm/spm5-master | loadxml.m | .m | spm5-master/loadxml.m | 3,893 | utf_8 | fb0e9f8657c033469c24d5750518420a | function varargout = loadxml(filename,varargin)
%LOADXML Load workspace variables from disk (XML file).
% LOADXML FILENAME retrieves all variables from a file given a full
% pathname or a MATLABPATH relative partial pathname (see PARTIALPATH).
% If FILENAME has no extension LOAD looks for FILENAME and FILENAME.xml ... |
github | spm/spm5-master | spm_eeg_make3dimage.m | .m | spm5-master/spm_eeg_make3dimage.m | 842 | utf_8 | 56786cc3d8080f1ea73122f241ca284c |
function D = spm_eeg_make3dimage(S)
% function for converting 2D images to 3D volumes for ERPs
% FORMAT D = spm_eeg_downsample(S)
%
% S - optional input struct
% (optional) fields of S:
% D - filename of EEG mat-file
%_______________________________________________________________________
% Copyright (C) 2005... |
github | spm/spm5-master | treelist.m | .m | spm5-master/treelist.m | 10,461 | utf_8 | 58343a29b98e2a4ea6134a424ebb9b43 | % TREELIST - Lists data in cell arrays and structs as ascii "tree"
%
% Version 1.1
%
% This functions lists the contents of structs, sub struct, cell arrays
% and sub cell array with chars: |-\ viewing the connection in the data.
% The main differents from the builtin DISP, DISPLAY is that this function
% lists all lev... |
github | spm/spm5-master | spm_normalise.m | .m | spm5-master/spm_normalise.m | 13,162 | utf_8 | 20a4dada77c2a5124d6b3710a07e7d31 | function params = spm_normalise(VG,VF,matname,VWG,VWF,flags)
% Spatial (stereotactic) normalization
%
% FORMAT params = spm_normalise(VG,VF,matname,VWG,VWF,flags)
% VG - template handle(s)
% VF - handle of image to estimate params from
% matname - name of file to store deformation definitions
% VWG ... |
github | spm/spm5-master | spm_pf.m | .m | spm5-master/spm_pf.m | 6,775 | utf_8 | 2789f6cf4185c0bae57568078459b24d | function [qx,qP,qD,xhist] = spm_pf(M,y,U)
% Particle Filtering for dynamic models
% FORMAT [qx,qP,qD,xhist] = spm_pf(M,y)
% M - model specification structure
% y - output or data (N x T)
% U - exogenous input
%
% M(1).x % initial states
% M(1).f = inline(f,'x','v','P') % state equation
% M... |
github | spm/spm5-master | spm_SpUtil.m | .m | spm5-master/spm_SpUtil.m | 26,532 | utf_8 | 3b40e62f97e91ccb5a8bc1cac222f39d | function varargout = spm_SpUtil(varargin)
% Space matrix utilities
% FORMAT varargout = spm_SpUtil(action,varargin)
%
%_______________________________________________________________________
%
% spm_SpUtil is a multi-function function containing various utilities
% for Design matrix and contrast construction and manipu... |
github | spm/spm5-master | spm_config_checkreg.m | .m | spm5-master/spm_config_checkreg.m | 1,973 | utf_8 | 22083b0d66942baadf969c8ccc65c399 | function opts = spm_config_checkreg
% Configuration file for check-reg jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_checkreg.m 171 2005-05-20 19:20:10Z john $
data.type = 'files';
data.... |
github | spm/spm5-master | spm_dicom_convert.m | .m | spm5-master/spm_dicom_convert.m | 40,700 | utf_8 | feaec8fcbfd853cc66ad24c8f1367572 | function spm_dicom_convert(hdr,opts,root_dir,format)
% Convert DICOM images into something that SPM can use
% FORMAT spm_dicom_convert(hdr,opts,root_dir,format)
% hdr - a cell array of DICOM headers from spm_dicom_headers
% opts - options
% 'all' - all DICOM files (default)
% 'mosaic' - the mosaic... |
github | spm/spm5-master | spm_spm_ui.m | .m | spm5-master/spm_spm_ui.m | 96,520 | utf_8 | bd545cfada5972c76b467ca0170c4274 | function varargout = spm_spm_ui(varargin)
% Setting up the general linear model for independent data
% FORMATs (given in Programmers Help)
%_______________________________________________________________________
%
% spm_spm_ui.m configures the design matrix (describing the general
% linear model), data specification, a... |
github | spm/spm5-master | spm_eeg_inv_model.m | .m | spm5-master/spm_eeg_inv_model.m | 61,788 | utf_8 | f4208f6ed03ec4d5192751a4d7c2b53f | function varargout = spm_eeg_inv_model(action,varargin)
% spm_eeg_inv_model is a multi-purpose routine that deals with the generation
% of the head model for the solution of the forward problem.
%
% Called without arguments :
%
% >> model = spm_eeg_inv_model
%
% the function calls GUI to select the operation(s) to be... |
github | spm/spm5-master | spm_config_smooth.m | .m | spm5-master/spm_config_smooth.m | 3,092 | utf_8 | c0bb069adf47cd5270401fdb50cea707 | function opts = spm_config_smooth
% Configuration file for smoothing jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_smooth.m 471 2006-03-08 17:46:45Z john $
%____________________________... |
github | spm/spm5-master | spm_config_mkdir.m | .m | spm5-master/spm_config_mkdir.m | 1,528 | utf_8 | e2e46a42fd29862a7861a58ae2973cf3 | function opts = spm_config_mkdir
% Configuration file for making directory function
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Darren Gitelman
% $Id: spm_config_mkdir.m 472 2006-03-08 17:48:52Z john $
%___________________... |
github | spm/spm5-master | spm_minmax.m | .m | spm5-master/spm_minmax.m | 3,722 | utf_8 | 5b32b4c6d23de573920ccc06d8d2baa0 | function [mnv,mxv] = spm_minmax(g)
% Compute a suitable range of intensities for VBM preprocessing stuff
% FORMAT [mnv,mxv] = spm_minmax(g)
% g - array of data
% mnv - minimum value
% mxv - maximum value
%
% A MOG with two Gaussians is fitted to the intensities. The lower
% Gaussian is assumed to represent backgr... |
github | spm/spm5-master | spm_create_vol.m | .m | spm5-master/spm_create_vol.m | 4,972 | utf_8 | ce1923f47d65ec0e52ab0e5f6e15df7f | function V = spm_create_vol(V,varargin)
% Create a volume
% FORMAT V = spm_create_vol(V)
% V - image volume information (see spm_vol.m)
%____________________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_create_vol.m... |
github | spm/spm5-master | spm_config_fmri_spec.m | .m | spm5-master/spm_config_fmri_spec.m | 45,713 | utf_8 | fff311b75229cb7ae87d6691191ed016 | function conf = spm_config_fmri_spec
% Configuration file for specification of fMRI model
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Darren Gitelman and Will Penny
% $Id: spm_config_fmri_spec.m 1016 2007-12-03 12:51:33Z vo... |
github | spm/spm5-master | spm_PEB.m | .m | spm5-master/spm_PEB.m | 11,436 | utf_8 | 678306cbfce6892ef9f126270aaaf5f4 | function [C,P,F] = spm_PEB(y,P,OPT)
% parametric empirical Bayes (PEB) for hierarchical linear models
% FORMAT [C,P,F] = spm_PEB(y,P,OPT)
%
% y - (n x 1) response variable
%
% MODEL SPECIFICATION
%
% P{i}.X - (n x m) ith level design matrix i.e: constraints on <Eb{i - 1}>
% P{i}.C - {q}(n x n) ith leve... |
github | spm/spm5-master | spm_eeg_firstlevel.m | .m | spm5-master/spm_eeg_firstlevel.m | 15,017 | utf_8 | fbadc26bae89a983d0b0adc9205ff7dd | function varargout = spm_eeg_firstlevel(varargin)
% SPM_EEG_FIRSTLEVEL M-file for spm_eeg_firstlevel.fig
% SPM_EEG_FIRSTLEVEL, by itself, creates a new SPM_EEG_FIRSTLEVEL or raises the existing
% singleton*.
%
% H = SPM_EEG_FIRSTLEVEL returns the handle to a new SPM_EEG_FIRSTLEVEL or the handle to
% ... |
github | spm/spm5-master | ctf_read_res4.m | .m | spm5-master/ctf_read_res4.m | 17,494 | utf_8 | ab874b345fc22ebc68b64b816b438ef9 | function [ctf] = ctf_read_res4(folder,VERBOSE,COEFS);
% ctf_read_res4 - Read a CTF .res4 file
%
% ctf = ctf_read_res4( [folder], [verbose], [coefs])
%
% This function reads the resource information from a CTF .ds folder. This
% resource information must be read before reading the .meg4 data file.
% All input argumen... |
github | spm/spm5-master | spm_get_bf.m | .m | spm5-master/spm_get_bf.m | 5,267 | utf_8 | 9d28df048561f174ac8f95eae7f50f11 | function [xBF] = spm_get_bf(xBF)
% fills in basis function structure
% FORMAT [xBF] = spm_get_bf(xBF);
%
% xBF.dt - time bin length {seconds}
% xBF.name - description of basis functions specified
% xBF.length - window length (secs)
% xBF.order - order
% xBF.bf - Matrix of basis functions
%
% xBF.name 'h... |
github | spm/spm5-master | spm_resize_gui.m | .m | spm5-master/spm_resize_gui.m | 481 | utf_8 | fa1e00d8d109dabf503b16c4d1b37fb1 |
% --- Executes when typeAssignmentPanel is resized.
function spm_ResizeFcn(hObject, eventdata, handles)
% hObject handle to typeAssignmentPanel (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
children=findall(hObject);
... |
github | spm/spm5-master | spm_eeval.m | .m | spm5-master/spm_eeval.m | 8,445 | utf_8 | 26057e63a54232c519c4a78782d28e78 | function [p,msg] = spm_eeval(str,Type,n,m)
% FORMAT [p,msg] = spm_eeval(str,Type,n,m)
% Expression evaluation
% Str - Expression to work with
%
% Type - type of evaluation
% - 's'tring
% - 'e'valuated string
% - 'n'atural numbers
% - 'w'hole numbers
% - 'i'ntegers
% - 'r'e... |
github | spm/spm5-master | spm_config_display.m | .m | spm5-master/spm_config_display.m | 4,639 | utf_8 | 121b20a231bfbafa715cf64cdc9a4819 | function opts = spm_config_display
% Configuration file for display jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_display.m 1032 2007-12-20 14:45:55Z john $
%___________________________... |
github | spm/spm5-master | spm_segment.m | .m | spm5-master/spm_segment.m | 24,271 | utf_8 | 156a8af0663ed1ee884a52b0ecc11e1f | function [VO,M] = spm_segment(VF,PG,flags)
% Segment an MR image into Gray, White & CSF.
%
% FORMAT VO = spm_segment(PF,PG,flags)
% PF - name(s) of image(s) to segment (must have same dimensions).
% PG - name(s) of template image(s) for realignment.
% - or a 4x4 transformation matrix which maps from the ima... |
github | spm/spm5-master | spm_config_cd.m | .m | spm5-master/spm_config_cd.m | 1,166 | utf_8 | 87ed5d6149a086f5d922fb7be08d85d3 | function opts = spm_config_cd
% Configuration file for changing directory function
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Darren Gitelman
% $Id: spm_config_cd.m 587 2006-08-07 04:38:22Z Darren $
data.type = 'files';
d... |
github | spm/spm5-master | spm_bias_estimate.m | .m | spm5-master/spm_bias_estimate.m | 6,359 | utf_8 | 418562b13c25a375ce47e36d439200a8 | function T = spm_bias_estimate(V,flags)
% Estimate image nonuniformity.
%
% FORMAT T = spm_bias_estimate(V,flags)
% V - filename or vol struct of image
% flags - a structure containing the following fields
% nbins - number of bins in histogram (1024)
% reg - amount of regularisation (1)
% cutoff... |
github | spm/spm5-master | spm_eeg_conman.m | .m | spm5-master/spm_eeg_conman.m | 25,044 | utf_8 | 05a1b8c0a88b56c840fba328224b016f | function varargout = spm_eeg_conman(varargin)
% internal function that allows to enter componentwise contrast weights.
% FORMAT varargout = spm_eeg_conman(varargin)
%
%_______________________________________________________________________
%
% The following comments are generated by the matlab guide-system:
% SPM_EEG_... |
github | spm/spm5-master | spm_config_reorient.m | .m | spm5-master/spm_config_reorient.m | 3,415 | utf_8 | d67a3c54751637e0e021b309b433f528 | function opts = spm_config_reorient
% Configuration file for reorient images
% Apply a given transformation matrix or reorientation parameters by
% left-multiplying the original image orientation with it.
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department o... |
github | spm/spm5-master | spm_latex.m | .m | spm5-master/spm_latex.m | 5,190 | utf_8 | a6cbdb66e672ce5b277533b297bb6370 | function spm_latex(c)
% Convert a job configuration structure into a series of LaTeX documents
%
% Note that this function works rather better in Matlab 7.x, than it
% does under Matlab 6.x. This is primarily because of the slightly
% different usage of the 'regexp' function.
%_________________________________________... |
github | spm/spm5-master | spm_coreg.m | .m | spm5-master/spm_coreg.m | 13,725 | utf_8 | 443ab4fbbd6c152d6d0f0d385d72356f | function x = spm_coreg(varargin)
% Between modality coregistration using information theory
% FORMAT x = spm_coreg(VG,VF,params)
% VG - handle for first image (see spm_vol).
% VF - handle for second image.
% x - the parameters describing the rigid body rotation.
% such that a mapping from voxels in G to voxels in F... |
github | spm/spm5-master | spm_config_surf.m | .m | spm5-master/spm_config_surf.m | 2,252 | utf_8 | 46cc9f45a635a68da38466624b0ec0d5 | function opts = spm_config_surf
% Configuration file for surface extraction jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Volkmar Glauche
% $Id: spm_config_surf.m 775 2007-03-26 16:57:01Z john $
data.type = 'files';
dat... |
github | spm/spm5-master | spm_eeg_scalp_dlg.m | .m | spm5-master/spm_eeg_scalp_dlg.m | 5,509 | utf_8 | 7cd9ad7846616f2c1e168eac831221ee | function varargout = spm_eeg_scalp_dlg(varargin)
% SPM_EEG_SCALP_DLG M-file for spm_eeg_scalp_dlg.fig
% SPM_EEG_SCALP_DLG, by itself, creates a new SPM_EEG_SCALP_DLG or raises the existing
% singleton*.
%
% H = SPM_EEG_SCALP_DLG returns the handle to a new SPM_EEG_SCALP_DLG or the handle to
% the ex... |
github | spm/spm5-master | spm_uw_estimate.m | .m | spm5-master/spm_uw_estimate.m | 33,867 | utf_8 | 17b02c89f832b000c9cce52c1529fb6a | function ds = spm_uw_estimate(P,par)
%
% Estimation of partial derivatives of EPI deformation fields.
%
% FORMAT [ds] = spm_uw_estimate((P),(par))
%
% P - List of file names or headers.
% par - Structure containing parameters governing the specifics
% of how to estimate the fields.
% ... |
github | spm/spm5-master | spm_prep2sn.m | .m | spm5-master/spm_prep2sn.m | 7,396 | utf_8 | 61eb57b5fb967c417d75aa0e5761501b | function [po,pin] = spm_prep2sn(p)
% Convert the output from spm_preproc into an sn.mat
% FORMAT [po,pin] = spm_prep2sn(p)
% p - the results of spm_preproc
% po - the output in a form that can be used by
% spm_write_sn.
% pin - the inverse transform in a form that can be
% used by spm_write_sn.
%________... |
github | spm/spm5-master | spm_eeg_inv_TesSph.m | .m | spm5-master/spm_eeg_inv_TesSph.m | 5,477 | utf_8 | b524de0b479cac1e72ad958508ad4ad2 | function tsph = spm_eeg_inv_TesSph(r,n);
%=======================================================================
% FORMAT tsph = spm_eeg_inv)TesSph(r,n);
%
% Generate a structure 'tsph' containing a tesselated sphere.
%
% Input :
% r - radius of the sphere
% n - number of 'latitude' divisions... |
github | spm/spm5-master | spm_ovhelper_3Dreg.m | .m | spm5-master/spm_orthviews/spm_ovhelper_3Dreg.m | 2,312 | utf_8 | 50f2f405f2da022944b80781d2e481a6 | function spm_ovhelper_3Dreg(cmd, varargin)
if ishandle(varargin{1})
h = varargin{1};
elseif ischar(varargin{1})
h = findobj(0, 'Tag',varargin{1});
if ~ishandle(h)
warning([mfilename ':InvalidHandle'], ...
'No valid graphics handle found');
return;
else
h = get(h(ishandle(h)),'parent');
end;
... |
github | spm/spm5-master | spm_ov_roi.m | .m | spm5-master/spm_orthviews/spm_ov_roi.m | 29,856 | utf_8 | 0297a491107f32f68e456f0584fa5a5e | function ret = spm_ov_roi(varargin)
% ROI tool - plugin for spm_orthviews
%
% With ROI tool it is possible to create new or modify existing mask images
% interactively. ROI tool can be launched via the spm_orthviews image
% context menu.
% While ROI tool is active, mouse buttons have the following functions:
% left ... |
github | spm/spm5-master | spm_config_3Dto4D.m | .m | spm5-master/toolbox/spm_config_3Dto4D.m | 1,523 | utf_8 | c5d8981c24f5a268e730a354d1c1658d | function c = spm_config_3Dto4D(varargin)
% Configuration file for concatenation jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_3Dto4D.m 946 2007-10-15 16:36:06Z john $
vols.type = 'files'... |
github | spm/spm5-master | spm_config_segment_old.m | .m | spm5-master/toolbox/spm_config_segment_old.m | 16,323 | utf_8 | 22130641d1f2170a0451396959a3254c | function opts = spm_config_segment_old
% Configuration file for segment jobs
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% John Ashburner
% $Id: spm_config_segment_old.m 184 2005-05-31 13:23:32Z john $
%_____________________... |
github | spm/spm5-master | spm_config_sendmail.m | .m | spm5-master/toolbox/spm_config_sendmail.m | 3,827 | utf_8 | 4f38b83b5b997bf9f13b735dd2b316d7 | function c = spm_config_sendmail(varargin)
% Configuration file for sending emails
%_______________________________________________________________________
% Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
% Guillaume Flandin
% $Id: spm_config_sendmail.m 302 2005-11-16 21:42:45Z guillaume $
to.type = '... |
github | spm/spm5-master | spm_eeg_inv_ecd_DrawDip.m | .m | spm5-master/toolbox/api_erp/spm_eeg_inv_ecd_DrawDip.m | 19,904 | utf_8 | 6c7ec83ef98b13ced7d98a3fc621b2ab | function varargout = spm_eeg_inv_ecd_DrawDip(action,varargin)
%___________________________________________________________________
%
% spm_eeg_inv_ecd_DrawDip
%
% Function to display the dipoles as obtained from the optim routine.
%
% Use it with arguments or not:
% - spm_eeg_inv_ecd_DrawDip('Init')
% The routi... |
github | spm/spm5-master | eeglab_fastif.m | .m | spm5-master/toolbox/api_erp/eeglab_fastif.m | 1,367 | utf_8 | 4d8780482e0ea0bb45ea3e4ea85261cd | % fastif() - fast if function.
%
% Usage:
% >> res = fastif(test, s1, s2);
%
% Input:
% test - logical test with result 0 or 1
% s1 - result if 1
% s2 - result if 0
%
% Output:
% res - s1 or s2 depending on the value of the test
%
% Author: Arnaud Delorme, CNL / Salk Institute, 2001
%123456789012... |
github | spm/spm5-master | spm_api_erp.m | .m | spm5-master/toolbox/api_erp/spm_api_erp.m | 29,617 | utf_8 | 14876864a53a1a4695dd23e6782d44cd | function varargout = spm_api_erp(varargin)
% SPM_API_ERP Application M-file for spm_api_erp.fig
% FIG = SPM_API_ERP launch spm_api_erp GUI.
% SPM_API_ERP('callback_name', ...) invoke the named callback.
%__________________________________________________________________________
% Copyright (C) 2005 Wellcome Trust... |
github | spm/spm5-master | spm_ind_u.m | .m | spm5-master/toolbox/api_erp/spm_ind_u.m | 1,213 | utf_8 | 4f09a9302079213c9fb56f5f28760353 | function [U] = spm_ind_u(t,P,M)
% returns the [scalar] input for EEG models
% FORMAT [U] = spm_ind_u(t,P,M)
%
% P - parameter structure
% P.R - input parameters
%
% t - PST (seconds)
%
% U - stimulus-related (subcortical) input
% B - non-specifc background fluctuations
%
% See spm_fx_ind.m and spm_ind_pri... |
github | spm/spm5-master | spm_dcm_erp_viewspatial.m | .m | spm5-master/toolbox/api_erp/spm_dcm_erp_viewspatial.m | 10,583 | utf_8 | 5715dfb79931731bfacb87b4aec2ac32 | function varargout = spm_dcm_erp_viewspatial(varargin)
% SPM_DCM_ERP_VIEWSPATIAL M-file for spm_dcm_erp_viewspatial.fig
% SPM_DCM_ERP_VIEWSPATIAL, by itself, creates a new SPM_DCM_ERP_VIEWSPATIAL or raises the existing
% singleton*.
%
% H = SPM_DCM_ERP_VIEWSPATIAL returns the handle to a new SPM_DCM_ERP_... |
github | spm/spm5-master | fieldtrip_meg_leadfield1.m | .m | spm5-master/toolbox/api_erp/fieldtrip_meg_leadfield1.m | 1,920 | utf_8 | 1c068e18288e3095a3effb886c2fb352 | function [lf] = meg_leadfield1(R, Rm, Um);
% MEG_LEADFIELD1 magnetic leadfield for a dipole in a homogenous sphere
%
% [lf] = meg_leadfield1(R, pos, ori)
%
% with input arguments
% R position dipole
% pos position magnetometers
% ori orientation magnetometers
%
% The center of the homogenous sphere is in the ... |
github | spm/spm5-master | spm_dcm_erp_dipfit.m | .m | spm5-master/toolbox/api_erp/spm_dcm_erp_dipfit.m | 10,804 | utf_8 | 359dc005629e0fd5c8e7f095f07b622f | function DCM = spm_dcm_erp_dipfit(DCM)
% prepares structures for ECD forward model (both EEG and MEG)
% FORMAT DCM = spm_dcm_erp_dipfit(DCM)
% requires:
%
% needs:
% DCM.xY.Dfile
% DCM.xY.Ic
% DCM.Lpos
% DCM.options.type
% DCM.M.dipfit.sensorfile - 'ECD'
%
% fills in:
%
% DCM... |
github | spm/spm5-master | eeglab_dipplot.m | .m | spm5-master/toolbox/api_erp/eeglab_dipplot.m | 58,861 | utf_8 | c21091d730be6500d90bec825a97515b | % dipplot() - Visualize EEG equivalent-dipole locations and orientations
% in the MNI average MRI head or in the BESA spherical head model.
% Usage:
% >> dipplot( sources, 'key', 'val', ...);
% >> [sources X Y Z XE YE ZE] = dipplot( sources, 'key', 'val', ...);
%
% Inputs:
% sources - structure a... |
github | spm/spm5-master | DEM_demo.m | .m | spm5-master/toolbox/DEM/DEM_demo.m | 5,159 | utf_8 | 2358430b0491bf5053bcbf59718a6a8f | function varargout = DEM_demo(varargin)
% DEM_DEMO M-file for DEM_demo.fig
% DEM_DEMO, by itself, creates a new DEM_DEMO or raises the existing
% singleton*.
%
% H = DEM_DEMO returns the handle to a new DEM_DEMO or the handle to
% the existing singleton*.
%
% DEM_DEMO('CALLBACK',hObject,eventDa... |
github | spm/spm5-master | spm_sextract.m | .m | spm5-master/toolbox/SRender/spm_sextract.m | 1,949 | utf_8 | cece4536d3e43573a233c340010cc490 | function spm_sextract(job)
% Surface extraction
%_______________________________________________________________________
% Copyright (C) 2007 Wellcome Trust Centre for Neuroimaging
% John Ashburner
% $Id$
images = job.images;
Vi = spm_vol(strvcat(images));
n = numel(Vi); %-#images
if n==0, err... |
github | spm/spm5-master | spm_config_srender.m | .m | spm5-master/toolbox/SRender/spm_config_srender.m | 8,254 | utf_8 | de6b1f8858310acf32bb826b24f5fee6 | function c = spm_config_render
% Configuration file for surface visualisation
%_______________________________________________________________________
% Copyright (C) 2007 Wellcome Trust Centre for Neuroimaging
% John Ashburner
% $Id$
entry = inline(['struct(''type'',''entry'',''name'',name,'...
'''tag'',tag,... |
github | spm/spm5-master | pm_segment.m | .m | spm5-master/toolbox/FieldMap/pm_segment.m | 3,379 | utf_8 | 10c91142a779c74dc0aff191dd254b7c | function dat = pm_segment(fname)
% Segment an MR image into Gray, White & CSF.
%
% FORMAT dat = pm_segment(fname)
% fname - name of image to segment.
% dat - matrix of size MxNxPx3 containing the resulting tissue probabilities
%_______________________________________________________________________
% Refs:
%
% Ashbur... |
github | spm/spm5-master | pm_brain_mask.m | .m | spm5-master/toolbox/FieldMap/pm_brain_mask.m | 4,190 | utf_8 | e569fc153b4b8c018cc3964a37661614 | function bmask = pm_brain_mask(P,flags)
% Calculate a brain mask
% FORMAT bmask = pm_brain_mask(P,flags)
%
% P - is a single pointer to a single image
%
% flags - structure containing various options
% template - which template for segmentation
% fwhm - fwhm of smoothing kernel for generating mask
%... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.