OpenCV 2.0 による背景除去と重心の追跡:ラットの行動観察
元に戻るにはブラウザの「戻るボタン」を押して下さい。
工事中(WIP)。
ラットの行動を観察するのが目的です。歪んだ画像のまま処理を行っています。元画像を見ての通り側面の壁にラットが写り込んでいます。それを除去している以外は、コードブック法を用いた背景除去 + ポリゴン近似 + モルフォロジー変換などはほぼ出典1の通りです。元の画像は 1440x1080 ありますが、640x360まで小さくしています。
List of references
-
Bradski, G. & Kaehler, A. Learning OpenCV O'Reilly Media, Inc., 2008
-
Kim, K.; Chalidabhongse, T. H.; Harwood, D. & Davis, L. Real-time foreground-background segmentation using codebook model Real-Time Imaging, 2005, 11, 172 - 185
-
Douglas, D. H. & Peucker, T. K. Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. Cartographica, 1973, 10, 112-122