필터 지우기
필터 지우기

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 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