I want to detect an object in the sequence images and track it..
i have develop an program in malab to do it.
i track it with SAD template matchng.
here is the code :
if norm(temp,1)<= meas
rectangle('Position',final_rect,'EdgeColor',[1 0 0]);
because i do template matching (SAD) between the cropped object with the seq images, the variable lminr, lminr, lminc, lminc is the coordinates of the cropped images(x,y,w,h).
to simplify the program, i do matching between the cropped object with the seq images in the position not far from the first object locate (first detected).By add 10 pixel to extend the location of the object in the next frames.
But the bounding box is not follow the object when i run the se imagess.. I think the problem is in the var new_r,new_c and the final_rect.
How to solve it??