To find settings of switches based on COG?

1 visualización (últimos 30 días)
Jim
Jim el 15 de Jun. de 2011
I calculated the COG value of the image as 144.1324?How to find settings of switches based on this? please visit the following site for image?

Respuestas (1)

Walter Roberson
Walter Roberson el 15 de Jun. de 2011
For any particular switch, the COG will be on the side of the switch that is up.
However... it seems to me that you could threshold at a higher brightness level, and then the position (or centroid) of the remaining blob would be on the side of the switch that is up.
  1 comentario
Jim
Jim el 15 de Jun. de 2011
Thank you for your reply
can u please explain me in detail?
My task is to find the settings of the switches?
For that I calculated the cog for the whole image?
Is there any other method to find the setting of each individual switch?

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by