Tracing the boundary of a binary region in an image
https://blogs.mathworks.com/pick/2021/02/09/tracing-the-boundary-of-a-binary-region-in-an-image/?from=cn
WebFeb 9, 2021 · [B,L] = bwboundaries(I, 8); Contour2 = false(size(L)); for ii = 1:numel(B) thisB = B{ii}; inds = sub2ind(size(L), thisB(:, 1), thisB(:, 2)); Contour2(inds) = 1; end …
DA: 82 PA: 22 MOZ Rank: 10