find a relationship between angles a & y from the given picture
1 次查看(过去 30 天)
显示 更早的评论
i'm trying to find a relationship between angles a & y given in the picture. 'a' should be the input (i.e. its value is known) and 'y' is the desired variable to be found. the equation should be solvable in matlab.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149706/image.jpeg)
3 个评论
Image Analyst
2015-10-4
Well it's obvious that a+x=y, so that's the relationship.
But I doubt it's as simple as that. That's so trivial that I'm wondering what the homework question is really after. For example, maybe the circle is a droplet of liquid and has some index of refraction so that the centerline is not a straightline extension of a beam of light emanating from the origin. But then you'd need to know the index of refraction, but once you have that you can find virtually anything else that you want. Or maybe the stuff outside the circle has some kind of dispersion and the spread (2x) depends on how cloudy the material is. Who knows? Not us.
Star Strider
2015-10-4
The lowest line does not appear to go through the origin (lower right corner), and does not appear to be referenced to anything else. So if the figure’s drawn accurately, ‘a’ is indeterminate from the information provided. That’s the problem I’m having with it.
回答(1 个)
Image Analyst
2015-10-4
Are there any restrictions on how you solve this - what functions you use? Or do you just need the answer? Because it's obviously trivial if you can use certain functions. Here's just two methods
- use ginput(2) to have use click on line
- use atan2d() to get the angles.
or
- use rbbox() or imrect() to draw a box around the line you want.
- use imcrop() to crop it.
- threshold and use polyfit to get the slope of the line.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!