To find settings of switches based on COG?
Afficher commentaires plus anciens
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?
Réponses (1)
Walter Roberson
le 15 Juin 2011
0 votes
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 commentaire
Jim
le 15 Juin 2011
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!