How can i find the diameter of a region?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi, I have a region of interest detected by a segmentation method. I want to find the diameter of this region in millimeter. How can i do this with matlab? This is the mask of the region
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149517/image.jpeg)
Thanks
댓글 수: 4
diksha lade
2017년 4월 23일
simple code for feature extraction last stage of our project
Image Analyst
2017년 4월 23일
Wow - surprised that could be his master's. I wouldn't have even let it get past the journal review process. For one thing it was published in 2014 and does nothing new - it merely applies the standard ABCD skin cancer method that's been around at least 20 years, without inventing anything new. And it didn't even show results. And it does dumb and potentially harmful stuff like histogram equalization - a useless thing that novices usually incorrectly think needs to be done (probably second only to edge detection in their desire to do something even if it's unnecessary). And it doesn't even do color calibration. The asymmetry measure he's using is the Sorensen-Dice coefficient as I mentioned and discussed in Wikipedia: https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient#cite_note-11 That said, feel free to replicate his work and implement the ABCD method.
답변 (1개)
Image Analyst
2012년 11월 5일
regionprops() has an 'EquivDiameter' measurement that you can ask for. See my Image Segmentation Tutorial "BlobsDemo" in my File Exchange if you want a demo.
댓글 수: 5
Image Analyst
2012년 11월 6일
Yes it works for any shape. To spatially calibrate you need to know how many pixels correspond to a millimeter. Try imaging an object of known size and measuring it.
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!