plotting rectangle aroung moving objects

  • Follow


Hello,

i am doing a project on object tracking and i used the method of subtraction to detect the motion.. and now i am stuck  on how to plot a rectangle around the moving object .. please any help .. 
0
Reply Nour 3/3/2010 7:10:26 AM

Nour wrote:

> i am doing a project on object tracking and i used the method of 
> subtraction to detect the motion.. and now i am stuck  on how to plot a 
> rectangle around the moving object .. please any help ..

Ummm, using the rectangle() plot function, perhaps ?
0
Reply Walter 3/3/2010 7:39:05 AM


Nour :
Did you see MATLAB's "People tracking demo"?
http://www.mathworks.com/products/viprocessing/demos.html?file=/products/demos/shipping/vipblks/viptrackpeople.html
It does exactly this.
0
Reply ImageAnalyst 3/3/2010 11:21:18 AM

Walter Roberson <roberson@hushmail.com> wrote in message <hml3mp$7b1$2@canopus.cc.umanitoba.ca>...
> Nour wrote:
> 
> > i am doing a project on object tracking and i used the method of 
> > subtraction to detect the motion.. and now i am stuck  on how to plot a 
> > rectangle around the moving object .. please any help ..
> 
> Ummm, using the rectangle() plot function, perhaps ?


Thanks for your suggestion .. 
0
Reply No0o0oR 3/3/2010 8:31:05 PM

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <92a439bd-a714-4324-bde3-44e92ec2695d@z35g2000yqd.googlegroups.com>...
> Nour :
> Did you see MATLAB's "People tracking demo"?
> http://www.mathworks.com/products/viprocessing/demos.html?file=/products/demos/shipping/vipblks/viptrackpeople.html
> It does exactly this.


Image Analyst,

yes i check this demo .. but the problem i don't know anything in simulink...i don't know the process to get that rectangle ... 

after i did the subtraction and detect the moving object what is the technique to draw a moving rectangle around it ?
0
Reply No0o0oR 3/3/2010 8:36:04 PM

"No0o0oR " <n.khaznadar@live.com> wrote in message <hmmh7k$4a9$1@fred.mathworks.com>...
> ImageAnalyst <imageanalyst@mailinator.com> wrote in message <92a439bd-a714-4324-bde3-44e92ec2695d@z35g2000yqd.googlegroups.com>...
> > Nour :
> > Did you see MATLAB's "People tracking demo"?
> > http://www.mathworks.com/products/viprocessing/demos.html?file=/products/demos/shipping/vipblks/viptrackpeople.html
> > It does exactly this.
> 
> 
> Image Analyst,
> 
> yes i check this demo .. but the problem i don't know anything in simulink...i don't know the process to get that rectangle ... 
> 
> after i did the subtraction and detect the moving object what is the technique to draw a moving rectangle around it ?

you can use 
region=regionprops(image_name);

for complete explanation just type regionprops on matlab help
0
Reply Ashar 4/15/2010 11:36:04 PM

5 Replies
669 Views

(page loaded in 0.045 seconds)

Similiar Articles:













7/20/2012 10:00:00 PM


Reply: