Skip to content
Snippets Groups Projects
Commit 846c4f01 authored by Mark Winter's avatar Mark Winter
Browse files

A few comments in FrameReseg.

parent fb2017d3
Branches
Tags
No related merge requests found
...@@ -13,6 +13,8 @@ function newEdges = FindFrameReseg(t, curEdges) ...@@ -13,6 +13,8 @@ function newEdges = FindFrameReseg(t, curEdges)
bLongEdge = ((t-tFrom) > 1); bLongEdge = ((t-tFrom) > 1);
% checkEdges = curEdges(~bLongEdge,:); % checkEdges = curEdges(~bLongEdge,:);
% bReallyLongEdge determines when we stop looking for hulls for this
% track.
bReallyLongEdge = ((t-tFrom) > 5); bReallyLongEdge = ((t-tFrom) > 5);
checkEdges = curEdges(~bReallyLongEdge,:); checkEdges = curEdges(~bReallyLongEdge,:);
bLongEdge = bLongEdge(~bReallyLongEdge); bLongEdge = bLongEdge(~bReallyLongEdge);
...@@ -27,6 +29,8 @@ function newEdges = FindFrameReseg(t, curEdges) ...@@ -27,6 +29,8 @@ function newEdges = FindFrameReseg(t, curEdges)
costMatrix = Segmentation.ResegFromTree.GetNextCosts(t-1, checkHulls, nextHulls); costMatrix = Segmentation.ResegFromTree.GetNextCosts(t-1, checkHulls, nextHulls);
% TODO: Do I need to handle erroneous missed mitoses? % TODO: Do I need to handle erroneous missed mitoses?
% Get costs for existing hulls in frame t back more than t-1 for
% tracks without hulls in t-1,...
missIdx = find(bLongEdge(uniqueIdx)); missIdx = find(bLongEdge(uniqueIdx));
for i=1:length(missIdx) for i=1:length(missIdx)
extendHull = checkHulls(missIdx(i)); extendHull = checkHulls(missIdx(i));
...@@ -58,6 +62,7 @@ function newEdges = FindFrameReseg(t, curEdges) ...@@ -58,6 +62,7 @@ function newEdges = FindFrameReseg(t, curEdges)
continue; continue;
end end
% Old guys can't add
if ( any(i == missIdx) ) if ( any(i == missIdx) )
continue continue
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment