I want to find centroid for a lesion.But I have found this in previous line of this code.So it shows me some error like 'Expected one output from a curly brace or dot indexing expression, but there were 2 results'. The error is in 5th line when I have used these lines:
props = regionprops(labeledImage, 'Centroid');xCentroid = props.Centroid(1)yCentroid = props.Centroid(2)props1 = regionprops(rotatedImage, 'Centroid');xnewCentroid = props1.Centroid(1)ynewCentroid = props1.Centroid(2)
Best Answer