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

Fix for GetConnectedDistance and learn from edits.

parent b4961381
No related branches found
No related tags found
No related merge requests found
......@@ -44,5 +44,5 @@ function dist = GetConnectedDistance(hull, nextHull)
return;
end
dist = 1000*ConnectedDist{firstHull}(ccIdx,2);
dist = ConnectedDist{firstHull}(ccIdx,2);
end
\ No newline at end of file
......@@ -294,12 +294,8 @@ function splits = findSplits(costMatrix, checkHulls, nextHulls)
% Only split using overlapping cells
bValidWants = true(size(wants));
for k=1:length(wants)
if ( isempty(ConnectedDist{checkHulls(wants(k))}) )
continue;
end
ccidx = find(ConnectedDist{checkHulls(wants(k))}(:,1) == nextHulls(i));
if ( isempty(ccidx) || ConnectedDist{checkHulls(wants(k))}(ccidx,2) >= 1.0 )
dist = Tracker.GetConnectedDistance(checkHulls(wants(k)),nextHulls(i));
if ( dist >= 1.0 )
bValidWants(k) = 0;
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment