Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Jul. de 2011
[r,c] = find(YourImage)

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by