フィルターのクリア

area calculation of black part

1 回表示 (過去 30 日間)
Smruti Khobragade
Smruti Khobragade 2020 年 2 月 5 日
コメント済み: 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 件のコメント
Walter Roberson
Walter Roberson 2020 年 2 月 5 日
numel(binary)-nnz(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')
  1 件のコメント
KSSV
KSSV 2020 年 2 月 5 日
Smruti Khobragade commented:
Thankyou sir it worked.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by