フィルターのクリア

find the center point of color

1 回表示 (過去 30 日間)
PJM
PJM 2013 年 6 月 24 日
Let pixels of the image : 1x10
When I find the point of center, if basis color is white,
maybe the answer is (3,1) or (4,1), right?
then, how can I find the answer to use matlab?
---
similar to centroid, center of mass...
do you follow me? :'(
  2 件のコメント
David Sanchez
David Sanchez 2013 年 6 月 24 日
Could you please ask the question in a different way? It is not clear what you need to solve.
PJM
PJM 2013 年 6 月 24 日
I edit my question.
I can't speak english very well. please understand even if you can't understand me clearly.
I'm sorry.

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

採用された回答

David Sanchez
David Sanchez 2013 年 6 月 24 日
Try with the built-in function regionprops.
One of the properties returned by this function is the center of mass of each region within the image.It can return many others properties of the regions, see the help for all the possibilities:
help regionprops
  1 件のコメント
PJM
PJM 2013 年 6 月 24 日
I really appreciate your help! :D

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by