area calculation of black part
1 次查看(过去 30 天)
显示 更早的评论
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
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 Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!