HOw to apply feature extraction algorithms on individual frames from a video for gait analysis?
1 view (last 30 days)
Show older comments
Besly Thomas
on 27 Nov 2014
Commented: Image Analyst
on 29 Nov 2014
I have extracted individual frames from gait analysis video. Now how can i apply feature extraction algorithms to each frames sequentially.
0 Comments
Accepted Answer
Image Analyst
on 27 Nov 2014
Pass in the frame (image) into your feature extraction function that you wrote:
% Allocate space for 23 features:
myFeatures = zeros(numberOfFrames, 23);
% Go through frame by frame extracting and saving features.
for f = 1 : numberOfFrames
thisFrame = read(videoReader, f);
myFeatures(f, :) = GetFeatures(thisFrame);
end
2 Comments
Image Analyst
on 29 Nov 2014
Put "hold on" and then call rectangle() with the bounding box rectangle, or plot() with the 5 corners of the box.
hold on;
rectangle('Position', [xLeft, yTop, width, height]);
or
xBox = [x1,x2,x2,x1,x1];
yBox = [y1,y1,y2,y2,y1];
hold on;
plot(xBox, yBox);
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!