Evaluate detection performance across object size ranges
metrics — Object detection metrics
M-by-4 numeric matrix | vector
Object detection metrics, specified as an
objectAreaRanges — Bounding box area ranges
M-by-2 numeric matrix | vector
Bounding box area ranges (object size ranges), specified as one of the following:
An M-by-2 numeric matrix, with each row specifying the upper (exclusive) and lower (inclusive) limits of an object area range in evaluation. For example, if the input is [x1 x2; x3 x4]. The evaluated bounding box area ranges are x1≤ area <x2 and x3≤ area <x4.
A vector with M+1 elements, specifying the edge values of M contiguous area ranges. Each range is inclusive in the lower limit, and exclusive in the upper limit. For example, if the input is [x1 x2 x3], the area ranges evaluated are x1≤ area <x2 and x2≤ area <x3.
ClassNames — Names of classes
'' (default) | string scalar | vector
Names of the classes for which to evaluate area-based metrics. If multiple classes are specified, the function computes averaged metrics across the classes. By default, all classes will be considered and the returned metrics will be the average of all classes.
areaMetrics — Metrics by area
Metrics by area, returned as a table with M rows. Each row contains metrics using objects within an area range (for a total of M area ranges). The first two columns are specified by the table variables:
AreaRange: The upper and lower limits of each area range.
NumObjects: The number of objects falling within each area range.
Introduced in R2023b