# MATLAB Video tracking

Status
Not open for further replies.

#### Rashi12

##### Newbie level 3
I need help for video tracking in MATLAB using correlation algorithm. I have MATLAB 6.5. Please guide me from where to start. I can read the video in MATLAB. hHow to play the video? How to create a template?

#### ninju

##### Full Member level 3
Please give me more details. Is the video captured and stored in a memory or do you want to do it in real time?

also, 'video tracking' is a bit ambiguous. Do you want to track a moving object ?

#### Rashi12

##### Newbie level 3
I would like to do real time tracking of the object. Object is acquired using a CCD camera. Right now I have to develop a code for the project. The object is preferably moving.
Initially template matching is performed using correlation. Then Kalman filter predicts the next position of target. If Kalman filter is mislead then fast means shift algorithm is applied.

#### ninju

##### Full Member level 3
correlation is an extremely simple task.Have you sorted out the camera and MATLAB interface?

I don't know about the kalman filtering part. I used sum of absolute differences to track motion.

First you'll have to acquire the image, identify the object using autocorrelation then, convert it into a logical image, then find centroid, then do all processing using it. Is this what you are planning? or something different?

#### Rashi12

##### Newbie level 3

1.From a CCD camera i'll be acquring a video.
2.Through Frame Grabber,i'll capture the images from that video.
3.I'll read those captured images into MATLAB.
4.I won't find the centroid i'll correlate two frames captured from frame grabber.
5.I also have to set a threshold value through a thresholding function.

So for that I'll need a correlation algorithm and a thresholding algorithm.
Since you don't use Kalman method I'll manage it myself. Basically Kalman filter predicts the next position of the object.
If Kalman filter fails, I'll use a mean shift algorithm.

Status
Not open for further replies.

Replies
1
Views
2K
Replies
5
Views
2K
Replies
0
Views
762
Replies
0
Views
810
Replies
1
Views
931