フィルターのクリア

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.
  2 件のコメント
Lorenzo Luengo
Lorenzo Luengo 2011 年 7 月 11 日
Is your image grey? or RGB?
charlie
charlie 2011 年 7 月 11 日
grey

サインインしてコメントする。

採用された回答

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