HOw to apply feature extraction algorithms on individual frames from a video for gait analysis?

1 view (last 30 days)
I have extracted individual frames from gait analysis video. Now how can i apply feature extraction algorithms to each frames sequentially.

Accepted Answer

Image Analyst
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
Besly Thomas
Besly Thomas on 29 Nov 2014
Thanks for your reply...How can I draw bounding box over the blob in the binary image and how to measure height: width ratio of the bounding box..
Image Analyst
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);

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!