Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Motion Capture in MATLAB

Status
Not open for further replies.

the_risk_master

Advanced Member level 2
Advanced Member level 2
Joined
Aug 12, 2005
Messages
660
Helped
79
Reputation
158
Reaction score
19
Trophy points
1,298
Location
UE+MIT, Philippines, (14°N , 120°E )
Activity points
5,514
image capture using webcam in matlab

Hi all,

I'm currently troubled with my project today, I am begging all here to help me out in this project on motion capture

heres the idea:

I have two webcams connected to a computer
The Subject (person) has markers attached on his body joints colored as RED
So what I have to do is capture the image from webcam and separate the RGB video composite and filterout the GB colors and remain RED
then I want to recreate the motion in "stick figure" form

that what I have in my mind
How do I implement this in MATLAB

any help or codes or links will do

thanks in advance,
the_risk_master
 

motion capture matlab

The absolute value of substracting the current n frame from the previews n-1 frame of your video will give you the sense of motion. Take a look at the demos of Matlab at the blockset of Image and Video Processing and check the Motion Detection example.
 

matlab webcam capture

I'll have to use passive markers in the subjects body and a webcam. I know how to access thwebcam through MATLAB, my only problem is on how to seperate the R from the RGB signals of the video and how to display "a stck figure" showing the motion from the passive colored markers

Please help

thanks in advance
the_risk_master
 

motion detection matlab

Check the following code i think is what you need
Code:
close all
clear all

avi = aviread('samplevideo.avi');
video = {avi.cdata};

for a = 1:length(video)
    b=video{a};
    figure(1)
    set(gcf,'Position',[50 450 400 300]);
    imagesc(b);title('original video')
    axis image off
    drawnow;
    figure(2)
    set(gcf,'Position',[650 450 400 300]);
    imagesc(b(:,:,1));colormap(gray);title('Red Component Video')
    axis image off
    drawnow;
    figure(3)
    set(gcf,'Position',[50 40 400 300]);
    imagesc(b(:,:,2));colormap(gray);title('Green Component Video')
    axis image off
    drawnow;
    figure(4)
    set(gcf,'Position',[650 40 400 300]);
    imagesc(b(:,:,3));colormap(gray);title('Blue Component Video')
    axis image off
    drawnow;
end;
 
  • Like
Reactions: rose89

    rose89

    Points: 2
    Helpful Answer Positive Rating
matlab motion detection

hi,i'm sorry i cannot help u a lot,but i was attracted by this topic 'cause i have some problems too,i'm doing image and video processing for my final project,so if anyone can help me to find how to convert a video to a sequence of images,using matlab, i'll give more information:i wanna get at the end a curve,i'm gonna calculate the surface of the left ventricule(humain heart) on MRI images,to analyse the variation of this area during one cycle,(systole and diastole),hope it's clear enough,so if anyone knows how to do that,please help me,:?:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top