第1个回答 2013-06-07
sum(c(:))试一下。我猜结果应该是1710.
你doc bwarea看一下,有下面这些话
total = bwarea(BW)
Description
total = bwarea(BW) estimates
the area of the objects in binary image BW. total is
a scalar whose value corresponds roughly to the total number of on pixels
in the image, ****but might not be exactly the same because different
patterns of pixels are weighted differently****.本回答被提问者和网友采纳