Skip to content
Snippets Groups Projects
Commit 51c91407 authored by actb's avatar actb
Browse files

perfTune: use bwconncomp instead of find

parent 38d147d7
Branches
No related tags found
No related merge requests found
......@@ -137,8 +137,9 @@ if ~is3D(im)
fprintf(2,'ACK frameSegment: boundaries and num components !=\n');
end
end
CC=bwconncomp(L);
for n=1:num
idx=find(L==n);
idx=CC.PixelIdxList{n};
if length(idx)<area_min|| max(d(idx))<dmin
continue
end
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment