Commit da0a92d2 authored by Andrew Cohen's avatar Andrew Cohen

resegPatch -- pathches are 'sticky'. don't undo during each reseg.

parent 8f42be07
......@@ -3,11 +3,14 @@ function resegPatch(conn,tReseg,CONSTANTS)
% patch 1->2 scenarios
% first, undo any patches that originate in frame tReseg-1 or tReseg-2
cmd=['delete from tblFamilies where rowid in (select tblFamilies.rowid from tblCells '...
' inner join tblFamilies on cellID_parent=cellID where cellID_child2 IS NULL and (time='...
num2str(tReseg-1) ' or time=' num2str(tReseg-2) ...
') and cellID_parent not in (select cellID_src from tblManualEdits))'];
exec(conn,cmd);
% note -- this is a tricky question. if we don't undo, patches are sticky
% there's no way to re-evaluate. if we do undo, then things toggle...for
% now go with not removing patches...
% cmd=['delete from tblFamilies where rowid in (select tblFamilies.rowid from tblCells '...
% ' inner join tblFamilies on cellID_parent=cellID where cellID_child2 IS NULL and (time='...
% num2str(tReseg-1) ' or time=' num2str(tReseg-2) ...
% ') and cellID_parent not in (select cellID_src from tblManualEdits))'];
% exec(conn,cmd);
% object A at time t has first choice object B at t+1.
% Object B is untracked. Object B's second choice is A. then patch A->B
......
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