Storing and update xy coordinate in realtime video

3 visualizaciones (últimos 30 días)
Ryan
Ryan el 18 de Abr. de 2018
Comentada: KSSV el 18 de Abr. de 2018
while ishandle(himg)
trigger(depthVid);
[depthMap,~, depthMetaData] = getdata(depthVid);
imshow(depthMap, [0 4096]);
if sum(depthMetaData.IsSkeletonTracked) > 0
skeletonJoints = depthMetaData.JointDepthIndices(:,:,depthMetaData.IsSkeletonTracked);
hold on;
plot(skeletonJoints(:,1), skeletonJoints(:,2),'*');
hold off
end
end
Is there any way i can update the data that i store in depthMetaData as shown in the coding? if yes what should i add in ? if no , is there other way around?

Respuesta aceptada

KSSV
KSSV el 18 de Abr. de 2018
iwant = cell([],1) ;
count = 0 ;
while ishandle(himg)
    count = count+1 ;
    trigger(depthVid);
    [depthMap,~, depthMetaData] = getdata(depthVid);
    iwant{count} = depthMetaData ;
imshow(depthMap, [0 4096]);
    if sum(depthMetaData.IsSkeletonTracked) > 0
        skeletonJoints = depthMetaData.JointDepthIndices(:,:,depthMetaData.IsSkeletonTracked);
        hold on;
        plot(skeletonJoints(:,1), skeletonJoints(:,2),'*');
        hold off
    end
end
  4 comentarios
Ryan
Ryan el 18 de Abr. de 2018
so the value is updated but only appear in the form of [1x3 double] and not numerical?
KSSV
KSSV el 18 de Abr. de 2018
It is numerical.....you can access by iwant{1}, iwant{2} etc,.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by