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