Area calculation for patches
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ATHIRA P M
am 27 Mär. 2019
Kommentiert: ATHIRA P M
am 28 Mär. 2019
Dear sir,
I want to find the area of the patches,which is the no of pixels within the region.How it is calculated? also i want to calculate the area of patches in the black region only.Please help sir
2 Kommentare
Akzeptierte Antwort
KSSV
am 27 Mär. 2019
I = imread('capture1.jpg');
[L,N] = superpixels(I,100);
figure
BW = boundarymask(L);
imshow(imoverlay(I,BW,'cyan'),'InitialMagnification',67)
% Area of each patch
A = zeros(N,1) ;
for i = 1:N
A(i) = nnz(L==i) ; % area in pixels
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polygons finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!