Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

counting the white pixels

Asked by kash on 24 Mar 2012

I have uploaded twoimages

segmented image=

http://imgur.com/dNPrc

original image= http://imgur.com/i4cYm

from these two images please tell how to calculate the area of white parts and other to count the number of pixels in white area

please help

1 Comment

hi,
have a try on regionprops command. It may help you to certain extent I guess.
Regards.
siva
siva@sdatech.in

kash

Products

No products are associated with this question.

1 Answer

Answer by Hussein on 28 Sep 2012
Edited by Walter Roberson on 28 Sep 2012
A=Imread('a.tif');
N=im2bw(A);
bwarea=bwarea(N);

0 Comments

Hussein

Contact us