Locate particular portion in an image

2 ビュー (過去 30 日間)
Turbulence Analysis
Turbulence Analysis 2020 年 8 月 13 日
回答済み: Turbulence Analysis 2020 年 8 月 13 日
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....

回答 (2 件)

Walter Roberson
Walter Roberson 2020 年 8 月 13 日
d = size(img,1) - find(any(img, 2),1,'last')
in pixels.
  2 件のコメント
Turbulence Analysis
Turbulence Analysis 2020 年 8 月 13 日
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 2020 年 8 月 13 日
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?

サインインしてコメントする。


Turbulence Analysis
Turbulence Analysis 2020 年 8 月 13 日
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...

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by