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

Rik
Rik 2018년 5월 10일
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?

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2018년 5월 11일

0 개 추천

" 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

NURUL AMIRA MHD RIZAL
NURUL AMIRA MHD RIZAL 2018년 5월 11일
Means that at x1, x2, y1 and y2 I have to insert a value? How can I know the value? I'm sorry for asking too much. I'm still a newbie in Matlab.
Image Analyst
Image Analyst 2018년 5월 11일
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
NURUL AMIRA MHD RIZAL 2018년 5월 11일
I didn't solve that algorithm to find hip and arm spots yet. I'm trying to do hough algorithm but it didn't work. Do you know how to find that spot specifically? Would be glad if you can help me
Rik
Rik 2018년 5월 12일
You can use getpts if selecting manually is an options for you.
NURUL AMIRA MHD RIZAL
NURUL AMIRA MHD RIZAL 2018년 5월 12일
Okayy. I will try using it. But how to make it automatically select?

댓글을 달려면 로그인하십시오.

질문:

2018년 5월 10일

댓글:

2018년 5월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by