Dear ladies and gentleman!
Is there any possibility in this example (https://de.mathworks.com/help/vision/ref/pointtracker.initialize.html) to save the koordinates of the tracked points for the whole duration of the video in a vector?
Thank you for your help and your time!

 Akzeptierte Antwort

KSSV
KSSV am 9 Jul. 2019

3 Stimmen

Some thing like this:
P = cell([],1) ; V = P ;
count = 0 ;
while ~isDone(videoFileReader)
frame = step(videoFileReader);
[points, validity] = step(tracker,frame);
out = insertMarker(frame,points(validity, :),'+');
step(videoPlayer,out);
count = count+1 ;
P{count} = points ;
V{count} = validity;
end

1 Kommentar

Paul Himsl
Paul Himsl am 9 Jul. 2019
Yes, it works!
Thank you very much for your help.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Control System Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 9 Jul. 2019

Kommentiert:

am 9 Jul. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by