How can I get the MaxFeretDiameter value in the MaxFeretProperties regionprop?
Code:
url='http://www.myiconfinder.com/uploads/iconsets/256-256-a0e17c0238c8bd1f805435f7cf132fc1-message.png';
Image = imread(url);
Image = rgb2gray(Image);
Image = imcomplement(Image);
BW = imbinarize(Image);
imshow(BW);
[B,L] = bwboundaries(BW,'noholes');
stat = regionprops(Image,'Centroid', 'MaxFeretProperties' );
disp(stat.MaxFeretProperties);
Error :
Reference to non-existent field 'MaxFeretProperties'.
Error in Untitled1 (line 17)
disp(stat.MaxFeretProperties);