How to give different colors to each tracked object's bounding boxes in Kalman filter tracking?

2 ビュー (過去 30 日間)
nanostaaar
nanostaaar 2014 年 7 月 7 日
回答済み: Dima Lisin 2014 年 7 月 15 日
I am trying multiple object tracking with kalman filtering. The example in matlab is giving only a single color(yellow) to all object boxes. I would like to know how to give distinct colours to each tracked object in the video/frame. Thanks in advance

回答 (1 件)

Dima Lisin
Dima Lisin 2014 年 7 月 15 日
If you are using the insertObjectAnnotation() function, you can set the color using the 'Color' parameter. Let's say you have 3 objects:
colors = [1 0 0; 0 1 0; 0 0 1];
insertObjectAnnotation(..., 'Color', colors);
This will make the first object red, the second green, and the third blue.

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by