Main Content


Plot re-identification (ReID) metrics

Since R2024a


plot(metrics,type) plots the ReID metrics metrics.

plot(metrics,type,Name=Value) specifies options using one or more name-value arguments. For example, LineColor="r" plots the specified metric type with a red line.

Input Arguments

collapse all

ReID metrics, specified as a reidentificationMetrics object.

Type of metric to plot, specified as one of these options:

  • "cmc" — Cumulative matching characteristic (CMC) curve over the entire data set

  • "cmc-per-object" — Cumulative matching characteristic (CMC) curve per object class

  • "precision-recall" — Precision-recall curve

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: plot(metrics,"precision-recall",LineColor="r") plots the precision-recall curve with a red line.

Option to display legend, specified as a numeric or logical 1 (true) or 0 (false). If you specify the plot type as "cmc-per-object" and there are 10 or fewer object classes, ShowLegend is true by default and the plot object function displays the legend.

Figure axes, specified as an Axes object.

Plot line color, specified as one or more 1-by-3 RGB triplets, or a long or short color name. If you specify the plot type as "cmc-per-object", you can specify a different color for each line by using a matrix in which each row is an RGB triplet. To specify one color for all lines, specify LineColor as a color name or a single RGB triplet.

Plot line width, in pixels, specified as a positive integer.

Version History

Introduced in R2024a