Error in running the Scene change detection example in CV system toolbox
3 ビュー (過去 30 日間)
古いコメントを表示
Hi, I am trying to use the example "Scene change detection" in Computer Vision system toolbox http://www.mathworks.in/help/vision/examples/scene-change-detection.html?prodcode=VP&language=en . The video example chosen in the example works fine for it but If i run it on any other video then I get error like this:
Matrix dimensions must agree. Error in scenechange (line 65)
edge_diff = abs(mean_blks - mean_blks_prev);
What does the matrix dimensions differ on any other example and not on the example video used? How can I fix this?
0 件のコメント
採用された回答
Anand
2013 年 3 月 21 日
Replace the following line:
mean_blks_prev = zeros([15, 1], 'single');
with
mean_blks_prev = zeros([numel(X),1], 'single');
That should do the trick.
3 件のコメント
Anand
2013 年 4 月 1 日
The block size was hard-coded. When you used a different video, the sizes were different and so it bombed out.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Computer Vision Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!