How to dynamically update a histogram-based tracker?

4 ビュー (過去 30 日間)
Kevin
Kevin 2014 年 3 月 18 日
編集済み: Dima Lisin 2014 年 7 月 25 日
I'm using a HistogramBasedTracker object in MATLAB 2013b to track a basketball in a video.
My understanding is that the HistogramBasedTracker sets a pixel histogram based off of an initial sample at initializeObject(). Then, it searches every subsequent frame for a ROI that matches this initial pixel histogram.
Is there any way to dynamically update the search histogram bins/values every time the ball is found in a new frame? I would like to take new samples whenever the ball is detected and add them to the pixel histogram (and then normalize). This way the color histogram will be more accurate as time goes.
Please let me know if there are any methods, tutorials, or code I should look at, thank you!

採用された回答

Dima Lisin
Dima Lisin 2014 年 7 月 25 日
編集済み: Dima Lisin 2014 年 7 月 25 日
You would have to call release() and then call initializeObject().

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by