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

KSSV
KSSV 2019년 3월 27일
How did you generate the patches?
ATHIRA P M
ATHIRA P M 2019년 3월 27일
Dear sir,
I use simple linear iterative clustering algorithm.the program is attached below
A = imread('capture1.jpg');
[L,N] = superpixels(A,100);
figure
BW = boundarymask(L);
imshow(imoverlay(A,BW,'cyan'),'InitialMagnification',67)

댓글을 달려면 로그인하십시오.

 채택된 답변

KSSV
KSSV 2019년 3월 27일

1 개 추천

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

댓글 수: 1

ATHIRA P M
ATHIRA P M 2019년 3월 28일
dear sir,
How know which patch area is calculated,how the patches are numbered?
Also if the individual patch area calculated separately.The figures are attached below.How the area calculated?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2019년 3월 27일

댓글:

2019년 3월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by