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

I have extracted individual frames from gait analysis video. Now how can i apply feature extraction algorithms to each frames sequentially.

 Accepted Answer

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

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..
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)

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!