Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Walter Roberson
Walter Roberson il 11 Lug 2011
[r,c] = find(YourImage)

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by