area calculation of black part

1 次查看(过去 30 天)
Smruti Khobragade
评论: KSSV 2020-2-5
hello,
i have to calculate the area of black part how can i do it and also which image should i use green or binary?

回答(1 个)

KSSV
KSSV 2020-2-5
A crude/ rough estimate
I = imread('binary2.jpg') ;
[y,x] = find(I<=180) ;
iwant = nnz(x) ;
imshow(I)
hold on
plot(x,y,'.r')

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by