Talk:Mask an image/@comment-68.232.112.78-20161020052834

Hello, Matlab gives me an error with the 'measurements section' when I get to this point in the code. Maybe its because of the ... but I took them out and still there was an error. Any way I could get some help on this? Thanks! ~ D % Label the binary image and computer the centroid and center of mass. labeledImage = bwlabel(binaryImage); measurements = regionprops(binaryImage, grayImage, ...    'area', 'Centroid', 'WeightedCentroid', 'Perimeter'); area = measurements.Area centroid = measurements.Centroid centerOfMass = measurements.WeightedCentroid perimeter = measurements.Perimeter