Angle display of binary image
Afficher commentaires plus anciens
I have a binary image. My main problem is that, is it possible for me to set a specific place or point to display an angle? Example, I want to set arm and hip part to be display its angle. So, for the next image captured, it will automatically display the angle at the hip and arm spot. Someone help me please?

1 commentaire
Rik
le 10 Mai 2018
It might be possible to do this automatically, but it will be very difficult. Is it also good enough if the lines defining the angles are placed manually?
Réponses (1)
Image Analyst
le 11 Mai 2018
" is it possible for me to set a specific place or point to display an angle?" Yes. You didn't say that finding the endpoints was your problem, just setting the points to display - to display a line I guess. So, just specify the x and y coordinates and use line() or plot:
line([x1, x2], [y1, y2]);
6 commentaires
NURUL AMIRA MHD RIZAL
le 11 Mai 2018
Image Analyst
le 11 Mai 2018
You don't "insert" a value into them. You "assign" or "compute" them through whatever algorithm you're using to find the hip and arm spots. I don't know what algorithm that is (you didn't share it, nor ask how to do it), but presumably you already have solved that part. So then you just compute/assign the x and y values and send them into the line() function.
NURUL AMIRA MHD RIZAL
le 11 Mai 2018
Rik
le 12 Mai 2018
You can use getpts if selecting manually is an options for you.
NURUL AMIRA MHD RIZAL
le 12 Mai 2018
Image Analyst
le 12 Mai 2018
Drill down into the references https://blogs.mathworks.com/cleve/2016/04/11/the-eigenwalker-model-of-the-human-gait/
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!