Calculation of axis of an object

4 views (last 30 days)
Tim Navr
Tim Navr on 7 Apr 2016
Answered: Tim Navr on 7 Apr 2016
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

Answers (2)

Image Analyst
Image Analyst on 7 Apr 2016
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 Comment
Tim Navr
Tim Navr on 7 Apr 2016
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

Sign in to comment.


Tim Navr
Tim Navr on 7 Apr 2016
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!