Effacer les filtres
Effacer les filtres

how can I get a list of 1s from a binary image (2d array)

2 vues (au cours des 30 derniers jours)
charlie
charlie le 11 Juil 2011
Hi, I am using nested for-loops to extract data, e.g. 1s from a binary image. It is really slow.
does anyone know a better way of doing this?
many thanks.
  2 commentaires
Lorenzo Luengo
Lorenzo Luengo le 11 Juil 2011
Is your image grey? or RGB?
charlie
charlie le 11 Juil 2011
grey

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 11 Juil 2011
[r,c] = find(YourImage)

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by