Hi! I want to know how can I measure the height of the plant in the given picture?
Show older comments
I have attached my picture and I have many pictures of the same plant captured over time.but the angle of all the pictures is same,its because camera is held onto a pole which looks over these plants. From this image,I want to know the height of the plant by calculating the distance between the camera and yellow spot minus the distance between camera and red spot(i.e. plant height=dist(camera,yellow spot)-dist(camera,red spot)). I have gone through the matlab documentation and many papers, but I could not figure out how can I get the distance between the camera and those red and yellow spots in the image. Please somebody explain me. I have been struggling over it for many days.

4 Comments
LauraLee Austin
on 28 Oct 2016
You don't have enough information to answer this question.
You either need some object in the image of a known size, or you need more information about the location of the camera with relation to the plant.
gerb
on 29 Oct 2016
John D'Errico
on 29 Oct 2016
Anyone who told you that you could infer the height of the plant by subtracting those two distances is simply wrong. That expression makes no mathematical sense in this context.
Draw the two lines. Make a triangle. Can you infer the length of the third side of a triangle by subtracting the lengths of two of the sides? NO.
In fact, there are formulas you could use. With some creativity, you can use the pythagorean theorem (you need it twice) to compute the distance, IF you know no more than the distance of the camera above the ground, as well as the distance to each of those points in the picture. To do that, you need to start drawing some right triangles. WHAT DO YOU KNOW! What can you infer?
gerb
on 31 Oct 2016
Accepted Answer
More Answers (0)
Categories
Find more on Computer Vision Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!