sum(c(:))试一下。我猜结果应该是1710.你doc bwarea看一下,有下面这些话total = bwarea(BW)Descriptiontotal = bwarea(BW) estimatesthe area of the objects in binary image BW. total isa scalar whose value corresponds roughly to the total number of on pixelsin the image, ****but might not be exactly the same because differentpatterns of p...