diff --git a/toolbox/math/bst_opticalflow.m b/toolbox/math/bst_opticalflow.m index 22bbbbbcb..a6af69a43 100644 --- a/toolbox/math/bst_opticalflow.m +++ b/toolbox/math/bst_opticalflow.m @@ -23,7 +23,7 @@ % For more information type "brainstorm license" at command prompt. % =============================================================================@ % -% Authors: Julien Lef�vre, 2006-2010 +% Authors: Julien Lefevre, 2006-2010 % Syed Ashrafulla, 2010 % INPUTS @@ -44,7 +44,7 @@ %/---Script Authors---------------------\ %| | -%| *** J.Lef�vre, PhD | +%| *** J.Lefevre, PhD | %| julien.lefevre@chups.jussieu.fr | %| | %\--------------------------------------/ @@ -53,12 +53,12 @@ Faces = FV.Faces; Vertices = FV.Vertices; VertNormals = FV.VertNormals; nVertices = size(Vertices,1); % VertNormals = FV.VertNormals'; nFaces = size(Faces,1); -tStartIndex = find(Time < tStart-eps, 1, 'last')+1; % Index of first time point for flow calculation +tStartIndex = find(Time < tStart-100*eps, 1, 'last')+1; % Index of first time point for flow calculation if isempty(tStartIndex) [tmp, tStartIndex] = min(Time); tStartIndex = tStartIndex + 1; end -tEndIndex = find(Time < tEnd-eps, 1, 'last')+1; % Index of last time point for flow calculation +tEndIndex = find(Time < tEnd-100*eps, 1, 'last')+1; % Index of last time point for flow calculation if isempty(tEndIndex) [tmp, tEndIndex] = max(Time); tEndIndex = tEndIndex + 1;