Calculation of axis of an object

1 次查看(过去 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