Skip to content

Commit

Permalink
Update bst_opticalflow.m
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoNouvelle committed Jun 25, 2020
1 parent 6fd7355 commit 731a4ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions toolbox/math/bst_opticalflow.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,7 +44,7 @@

%/---Script Authors---------------------\
%| |
%| *** J.Lef�vre, PhD |
%| *** J.Lefevre, PhD |
%| [email protected] |
%| |
%\--------------------------------------/
Expand All @@ -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;
Expand Down

0 comments on commit 731a4ee

Please sign in to comment.