Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
...

Subject: ...

From: Enigma Enlist

Date: 16 Jun, 2010 20:30:30

Message: 1 of 5

In an image i have so many objects, I only want object having pixel intensity 200, what would be the command for that?

another thing i wanna know is if i have two consecutive frames of a video how can i find the distance covered by all cars in a particular span of time?

Subject: ...

From: Bruno Luong

Date: 16 Jun, 2010 20:55:04

Message: 2 of 5

....................

Subject: ...

From: ImageAnalyst

Date: 16 Jun, 2010 22:37:20

Message: 3 of 5

On Jun 16, 4:30 pm, "Enigma Enlist" <dynamic-l...@hotmail.com> wrote:
> In an image i have so many objects, I only want object having pixel intensity 200, what would be the command for that?
>
> another thing i wanna know is if i have two consecutive frames of a video how can i find the distance covered by all cars in a particular span of time?

----------------------------------------------------------------------------------------
Please use a subject next time.

binaryImageOfPixelsWith200GrayLevel = (grayImage == 200);
grayImageOfPixelsWith200GrayLevel =
binaryImageOfPixelsWith200GrayLevel .* grayImage;

For tracking, find the position of each car in each frame (not trivial
in general), then use the Pythagorean theorem on the centroid
coordinates.

By the way, "particular span of time" should be the time between "two
consecutive frames" so it's predetermined. You can't have it both
ways in the same sentence. If you want to track across multiple
frames, see the post I just gave on the topic to some other guy a few
minutes ago.

Subject: ...

From: Rob Campbell

Date: 16 Jun, 2010 22:51:04

Message: 4 of 5


> another thing i wanna know is if i have two consecutive frames of a video how can i find
>the distance covered by all cars in a particular span of time?

I could be wrong, but I think there's a "find_cars" function in the image processing toolbox.

Subject: ...

From: ImageAnalyst

Date: 16 Jun, 2010 23:02:12

Message: 5 of 5

On Jun 16, 6:51 pm, "Rob Campbell"
<mat...@robertREMOVEcampbell.removethis.co.uk> wrote:
> > another thing i wanna know is if i have two consecutive frames of a video how can i find
> >the distance covered by all cars in a particular span of time?
>
> I could be wrong, but I think there's a "find_cars" function in the image processing toolbox.
----------------------------------------------------------------------
Not that I remember. There are some vehicle demos on the Mathworks
web site but they don't seem to find cars, just lane markings, etc.

There is a people tracking demo up there:
http://www.mathworks.com/image-video-processing/demos.html?file=/products/demos/shipping/vipblks/viptrackpeople.html

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us