object detection in a binary image

13 ビュー (過去 30 日間)
taher taher
taher taher 2019 年 9 月 13 日
コメント済み: taher taher 2019 年 9 月 13 日
I have converted an image to a biary image (attached). This image inlcudes some black spots that I'd like to have the x and y coordinates of each spot. For example, the attached image have 7 black spots. So I'll have 7 sets of x and y coordinates. I only want the x and y in terms of pixel. I'll convert to actual x and y myself.
Could anyone help me with that?
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 9 月 13 日
What is your final objective?
taher taher
taher taher 2019 年 9 月 13 日
Thank you for your answer.
These are some frames extracted from a video captured by a ultra high speed camera (of course the attached image is not the original frame). I'm trying to see if I can get the velocity of these spots (which are actually water droplets) somehow.
Of course, I'm not sure if I can get the velocity this way. Because I haven't figured out yet how to recognize the exact same spot in the next frame so that I can find its velocity.

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

採用された回答

Matt J
Matt J 2019 年 9 月 13 日
編集済み: Matt J 2019 年 9 月 13 日
>> bwimage=imbinarize(rgb2gray(imread('bwimage.jpg')));
>> locations=regionprops('table',~bwimage,'Centroid')
locations =
7×1 table
Centroid
________________
284.26 854.72
376.96 328.91
872.47 770.18
1087.9 568.19
1374.2 370.17
1437.1 899.07
1440.4 823.5
  1 件のコメント
taher taher
taher taher 2019 年 9 月 13 日
Thanks you very much.
That helped a lot

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by