Groups the object candidate rectangles using meanshift
[rects, weights] = cv.groupRectangles_meanshift(rects, weights, scales)
[...] = cv.groupRectangles_meanshift(..., 'OptionName', optionValue, ...)
Input
- rects Input cell array of rectangles, where each rectangle is
represented as a 4-element vector
{[x,y,w,h], ...}
, or a numeric
Nx4/Nx1x4/1xNx4 array.
- weights Input vector of associated weights.
- scales Input vector of corresponding rectangles scales.
Output
- rects Output array of retained and grouped rectangles. Same format as
input
rects
(either Nx4 numeric array or cell array).
- weights Output updated weights.
Options
- DetectThreshold detection threshold (weight) above which resulting
modes are kept. default 0.0
- WinDetSize window size
[w,h]
. default [64,128]