Return distance between endpoints of Distance tool
getDistance is not recommended. Use one of the ROI classes instead,
described in ROI Creation Overview.
dist = getDistance(h)
dist— Distance between endpoints
Distance between endpoints, returned as a numeric scalar. The data units
of the distance are determined by the
YData properties of the underlying image. By default,
the distance is measured in pixels.