how can i use detectHarrisFeatures between image and video

1 回表示 (過去 30 日間)
mh sarah
mh sarah 2017 年 1 月 23 日
コメント済み: Walter Roberson 2017 年 1 月 24 日
this code is between tow image i need between image and video
points1 = detectHarrisFeatures(I);
points2 = detectHarrisFeatures(F);
[features1, valid_points1] = extractFeatures(I, points1);
[features2, valid_points2] = extractFeatures(F, points2);
indexPairs = matchFeatures(features1, features2);
matched_points1 = valid_points1(indexPairs(:, 1), :);
matched_points2 = valid_points2(indexPairs(:, 2), :);
figure; showMatchedFeatures(I, frame, matched_points1, matched_points2);

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 1 月 24 日
It is not possible to work directly with videos. Instead, you have to read (or capture) a frame of the video at a time. The frame of the video is an image, so you can just assign that image to the appropriate variable name and use your existing code.
  2 件のコメント
mh sarah
mh sarah 2017 年 1 月 24 日
yes i knows but the video has a lot of frame how can i make do it whith all the frame and extract the frame with have a lot of interested point similar
Walter Roberson
Walter Roberson 2017 年 1 月 24 日

サインインしてコメントする。

カテゴリ

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