Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

matlab components area

A = randi([0 1], [10 10]);
B = mat2gray(A);
% To consider the horizontal or vertical connectivity set connectivity parameter = 4.
cc = bwconncomp(B, 4);
% Calculate area of individual connected component.
Area = regionprops(cc,'Area');
Source by www.mathworks.com #
 
PREVIOUS NEXT
Tagged: #matlab #components #area
ADD COMMENT
Topic
Name
5+4 =