Main Content

getDistance

Return distance between endpoints of Distance tool

getDistance is not recommended. Use one of the ROI classes instead, described in Create ROI Shapes.

Description

dist = getDistance(h) returns the distance between the endpoints of the Distance tool, h.

Input Arguments

collapse all

Distance tool, specified as an imdistline object.

Output Arguments

collapse all

Distance between endpoints, returned as a numeric scalar. The data units of the distance are determined by the XData and YData properties of the underlying image. By default, the distance is measured in pixels.

Version History

Introduced before R2006a