Contenido principal

Match

R2026b

Shape matching result

Since R2026b

    Description

    A Match object contains the result of a shape matching operation. The object stores the position, rotation, scale, and similarity score of each detected instance of a shape model in a search image. To visualize the shape model matches, use the showmatches function.

    Creation

    Create a Match object by using the matchshape object function of the shapemodel object, which detects instances of a shape model in a search image and returns a Match object for each detected instance.

    Properties

    expand all

    Match score that indicates how well the detected instance matches the shape model, returned as a scalar in the range [0, 1]. Higher values indicate a better match.

    Class label of the shape model that produced the match, returned as a string scalar.

    Index of the shape model that produced the match, returned as a positive integer.

    Geometric transformation that maps points from the shape model coordinate system into the search image coordinate system, returned as a simtform2d object.

    Rotated bounding box that encloses the detected shape model instance, returned as a five‑element numeric vector of the form [xc yc width height theta].

    (xc, yc) is the center of the bounding box in image coordinates. width and height are the box size, and theta is the rotation angle.

    Version History

    Introduced in R2026b

    See Also