Commit 45cc5433 authored by ac32's avatar ac32

resegPatch -- only look 2 frames back

parent 1f46931f
......@@ -19,11 +19,16 @@ for ff=1:length(flist)
Batch.batchSegment(strDB,[],false);
end
if ispc
nodecmd='node.exe ';
else
nodecmd='node ';
end
ljsPath=getLeverjsPath('resegAndTrackDataset.js');
if bTrack
parfor ff=1:length(flist)
strDB=fullfile(flist(ff).folder,flist(ff).name);
system(['node.exe ' ljsPath ' "' ...
system([nodecmd ' ' ljsPath ' "' ...
strDB '" resegAll 1 "{}" ' ]);
end
end
......
......@@ -25,7 +25,7 @@ end
srcTracks=cell2mat(q);
% tracks that start in this frame
cmd=['select cellID,time from tblCells where cellID=trackID and time>='...
num2str(tReseg-5) ' and time<=' num2str(tReseg+1) ...
num2str(tReseg-2) ' and time<=' num2str(tReseg+1) ...
' and cellID not in (select cellID_dst from tblManualEdits)'];
q=ljsFetch(conn,cmd);
if isempty(q)
......
......@@ -15,7 +15,7 @@ editQ=ljsFetch(conn,cmd);
if ~isempty(editQ)
idxUndo = cellfun(@(x) strcmp(x,'undo'),editQ(:,5));
idxUndone = [editQ{idxUndo,1}]'
idxUndone = [editQ{idxUndo,1}]';
for i=1:size(editQ,1)
if idxUndo(i)
continue;
......
......@@ -3,4 +3,4 @@ function ljsPath=getLeverjsPath(file)
thisFile=mfilename('fullpath');
[thisFolder,~,~]=fileparts(thisFile);
ljsPath=fullfile(thisFolder,'..\leverjs\',file);
\ No newline at end of file
ljsPath=fullfile(thisFolder,'..','leverjs',file);
\ No newline at end of file
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment