Locate particular portion in an image

1 view (last 30 days)
Hi,
I have a serious of images similar to the one attached here. I intend to measure the distance of particular portion of the image from the bottom, Is anybody have done anything similar to this??. Could somebody please help me with this....
Thanks in advance....

Answers (2)

Walter Roberson
Walter Roberson on 13 Aug 2020
d = size(img,1) - find(any(img, 2),1,'last')
in pixels.
  2 Comments
Turbulence Analysis
Turbulence Analysis on 13 Aug 2020
Hi,
Thanks for prompt answer..
Actually, if you look at my image, i got drak background and subject in white color, and this subject sometime located near bottom and sometime away from it. My goal is to find the distance at which subject is located from the bottom..
while executing the above command, i got 1x3 array with values as -1852 -1792 -2685....
Walter Roberson
Walter Roberson on 13 Aug 2020
are the white margin and text part of the image being processed? Is the arrow part of the image being processed? Is the image being processed RGB?

Sign in to comment.


Turbulence Analysis
Turbulence Analysis on 13 Aug 2020
The white margin is an export error and yellow arrow is just for an depicting the need. The actual raw images are similar to the one attached here...

Community Treasure Hunt

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

Start Hunting!