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

Removed connected component analysis in merged-cell code, since it doesn't...

Removed connected component analysis in merged-cell code, since it doesn't work without the bioinformatics toolbox.
parent 2f880ec3
No related branches found
No related tags found
No related merge requests found
...@@ -29,17 +29,9 @@ function [mergeObj, deleteCells] = CreateMergedCell(mergeCells) ...@@ -29,17 +29,9 @@ function [mergeObj, deleteCells] = CreateMergedCell(mergeCells)
mergeObj = []; mergeObj = [];
deleteCells = []; deleteCells = [];
ccM = calcConnDistM(mergeCells); szC = length(mergeCells);
[S,C] = graphconncomp(sparse(ccM <= 5)); largestC = 1;
C = ones(1,length(mergeCells));
largestC = 0;
szC = 0;
for i=1:S
if ( nnz(C==i) > szC )
largestC = i;
szC = nnz(C==i);
end
end
if ( szC > 1 ) if ( szC > 1 )
deleteCells = mergeCells(C == largestC); deleteCells = mergeCells(C == largestC);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment