Storing and update xy coordinate in realtime video

3 ビュー (過去 30 日間)
Ryan
Ryan 2018 年 4 月 18 日
コメント済み: KSSV 2018 年 4 月 18 日
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?

採用された回答

KSSV
KSSV 2018 年 4 月 18 日
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 件のコメント
Ryan
Ryan 2018 年 4 月 18 日
so the value is updated but only appear in the form of [1x3 double] and not numerical?
KSSV
KSSV 2018 年 4 月 18 日
It is numerical.....you can access by iwant{1}, iwant{2} etc,.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by