How to show given x,y position on image frame?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to show shape connecting 3 x,y points on image frame.
fileCount=length(Files);
middleImage=round((fileCount/2)-5);
startingImage=Files(5).name;
middleImagePOS=Files(middleImage).name;
imagename1 = fullfile(outputFolder, middleImagePOS);
originalImage = imread(imagename1);
out = insertShape(originalImage,'Line',[
ex_points{5}(1,1) ex_points{5}(1,2)
ex_points{5}(2,1) ex_points{5}(2,2)
ex_points{5}(2,1) ex_points{5}(2,2)
ex_points{5}(3,1) ex_points{5}(3,2)
ex_points{5}(3,1) ex_points{5}(3,2)
ex_points{5}(1,1) ex_points{5}(1,2)
] );
%grayImage = insertMarker(originalImage,pos,'+','Color',color,'size',20);
imshow(out);
% plot([shoulder_X elbow_x wrist_x], [shoulder_Y elbow_y wrist_y],'g');
F = getframe;
imshow(F.cdata);
ex_points{5} -> is array which include x,y value of point a,b and c.
How can i show this shape on the image which i take? if that insertShape() worked, it should show the image like below

0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Surfaces, Volumes, and Polygons dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!