Skip to content
Snippets Groups Projects
Commit 82048506 authored by Eric Wait's avatar Eric Wait
Browse files

Fixed bug in segmentation that was combining connected components together

parent acd81477
No related branches found
No related tags found
1 merge request!1Split Hull Bug Fix
......@@ -37,7 +37,8 @@ scaleFactor = imageDims ./ max(imageDims) .* physDims/physDims(1);
imDiv = imageDims /2;
minCellVol = (4*pi*(minCellDia/2)^3)/3;
stts = regionprops(bwIm,orgIm,'BoundingBox','PixelList','WeightedCentroid');
cc = bwconncomp(bwIm);
stts = regionprops(cc,orgIm,'BoundingBox','PixelList','WeightedCentroid');
if isempty(stts)
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment