Why the values of perimeter calculated using regionprops for Matlab 2010 and 2015 differ?

조회 수: 2 (최근 30일)
The following code
when executed on Matlab 2010 , gives 2 as the value of perimeter.
But when I execute the same code on Matlab 2015 , the perimeter is 1.96.
Can anyone explain what is the reason of this difference.
For the record, Matlab 2010 is not rounding off the value.
Secondly, how regionprops calculate perimeter of an object in an image. I have read the help of this command but was unable to comprehend the method.

채택된 답변

Ashish Uthama
Ashish Uthama 2015년 5월 26일
The release notes R2014a appears to explain that the newer value is more accurate.
  댓글 수: 1
Waleed  Saqib
Waleed Saqib 2015년 5월 28일
편집: Waleed Saqib 님. 2015년 5월 28일
Thank you so much for your help. It really helped a lot.
Can you also explain how perimeter is calculated by Matlab? I mean how the distance is computed between two pixels.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by