필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
charlie
charlie 2011년 7월 11일
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.

채택된 답변

Walter Roberson
Walter Roberson 2011년 7월 11일
[r,c] = find(YourImage)

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by