MATLAB Answers

Finding coordinates of an moving object in every frame of a tif file movie

2 views (last 30 days)
Lucy Davidson
Lucy Davidson on 8 Apr 2020
Answered: Prabhan Purwar on 12 May 2020
i have a tif file movie and I want to find the x and y coordinates of a moving object in each frame of the move.
i have used this code
Ic = imcomplement(I1); % Make the moust bright
otsu = graythresh(Ic);
I1b = imbinarize(Ic,otsu);
and the object is now bright in the foreground and everything else is dark, but i am not sure what to do next.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by