area calculation of black part

1 visualización (últimos 30 días)
Smruti Khobragade
Smruti Khobragade el 5 de Feb. de 2020
Comentada: KSSV el 5 de Feb. de 2020
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?

Respuestas (1)

KSSV
KSSV el 5 de Feb. de 2020
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 comentario
KSSV
KSSV el 5 de Feb. de 2020
Smruti Khobragade commented:
Thankyou sir it worked.

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by