find the center point of color

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 comentarios

David Sanchez
David Sanchez el 24 de Jun. de 2013
Could you please ask the question in a different way? It is not clear what you need to solve.
PJM
PJM el 24 de Jun. de 2013
I edit my question.
I can't speak english very well. please understand even if you can't understand me clearly.
I'm sorry.

Iniciar sesión para comentar.

 Respuesta aceptada

David Sanchez
David Sanchez el 24 de Jun. de 2013

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Images en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

PJM
el 24 de Jun. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by