Calculation of axis of an object

조회 수: 3 (최근 30일)
Tim Navr
Tim Navr 2016년 4월 7일
답변: Tim Navr 2016년 4월 7일
Hi I have a point cloud representing the end part of a femur (thigh bone).
I have the surface point cloud fir it and I need to calculate its axis. The amount you can see on the picture is as much as I have. As you can see its shape is wider at the end. Anyway, I need to calculate its central axis, ie the line which runs parallel to the bone. I was thinking to apply the cylinder first, but not sure how to do it properly.
Any and all ideas are welcome Thank you

답변 (2개)

Image Analyst
Image Analyst 2016년 4월 7일
Is this your actual image, with annotation and everything? If not, let's see the actual image. In general, you can use regionprops() and get the centroid, MajorAxisLength, and Orientation.
  댓글 수: 1
Tim Navr
Tim Navr 2016년 4월 7일
I cannot upload the actual image as I only have the stl file. The image is just for the ilustration purposes. There are no annotations, just the shape of the bone and the amount of bone shown is as much as I have. will have a look at the commands you have provided. Thank you

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


Tim Navr
Tim Navr 2016년 4월 7일
Thanks for your time. Found the answer through using principal component analysis

Community Treasure Hunt

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

Start Hunting!

Translated by