MATLAB: How to calculate the distance between different pixels

bone separationcalibrationimage processingImage Processing Toolboxjointknee

mn.JPG

Best Answer

Try imdistline() or improfile() to get the distance either in pixels or real world units (if you've used XDAta when you called imshow()).
Also see my attached spatial calibration demo.