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,it's 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 (i.e. tip of plant) minus the distance between camera and red spot (i.e a point on ground), in short-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.