[Homer-users] motion correction
Scholkmann Felix
Felix.Scholkmann at usz.ch
Fri May 13 16:07:09 EDT 2016
The "csaps" error occurs since you don't have the Spline Fitting Toolbox.
"csaps" is the function to calculate the cubic smoothing spline:
http://ch.mathworks.com/help/curvefit/csaps.html
Regards,
Felix
________________________________
Von: homer-users-bounces at nmr.mgh.harvard.edu [homer-users-bounces at nmr.mgh.harvard.edu]" im Auftrag von "Chen Zhao [chenzhao510 at gmail.com]
Gesendet: Freitag, 13. Mai 2016 20:39
An: homer-users at nmr.mgh.harvard.edu
Betreff: [Homer-users] motion correction
Hey guys,
I am trying different motion correction methods with Homer2 on my data hoping to find the best way to reject noise. The process option was set firstly identify artefacts with ‘motion_artifacts_by_channel’, and then correct it with wavelet/spline. However when I ran the option following errors occurred, I don’t know where I’ve done wrong, could anyone help me please?
The parameters was set as ‘p=0.99’ for spline motion correction.
Undefined function 'csaps' for input arguments of type 'double'.
Error in hmrMotionCorrectSpline (line 89)
SplInterp = csaps(t(lst)', dod(lst,idx_ch)', p, t(lst)')';
Error in EasyNIRS_Process (line 88)
eval( fcall );
Error in EasyNIRS>runNIRSsignalProcess (line 1022)
[procResult procInput err] = EasyNIRS_Process(hmr);
Error in EasyNIRS>popupmenuNIRSsignalProcess_Callback (line 1435)
runNIRSsignalProcess(iGrp,iSubj,iRun,handles);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in EasyNIRS (line 43)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)EasyNIRS('popupmenuNIRSsignalProcess_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
Also when I run wavelet_motion_correction:
‘iqr=1.5’ for wavelet motion correction.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! WARNING: Change DWT Extension Mode !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*****************************************
** DWT Extension Mode: Periodization **
*****************************************
*****************************************
** DWT Extension Mode: Periodization **
*****************************************
Many thanks,
Jessie
More information about the Homer-users
mailing list