Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to apply detectHarrisFeatures to a video frame then recreate a new video using frames with detectHarrisFeatures

1 vue (au cours des 30 derniers jours)
Peter
Peter le 30 Nov 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
function [ RecreateVideo ] = convertVideoCorner( path )
v = VideoReader(path);
vidHeight = v.Height;
vidWidth = v.Width;
mov=struct('cdata',zeros(vidHeight,vidWidth,3,'uint8'),'colormap',[]);
numFrames = get(v,'NumberOfFrames');
for k=1:numFrames
mov(k).cdata = read(v,k);
end
m = mov;
for k=1:numFrames
corners = detectHarrisFeatures(m(k).cdata);
xf = plot(corners. selectStrongest(50));
m(k).cdata = xf;
end
end
After this, I just use the VideoWriter to create a new video(.avi) I know the code of the second for loop is not working, it is just the concept

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by