フィルターのクリア

Converting an image into three column format

2 ビュー (過去 30 日間)
Bharathwaj
Bharathwaj 2013 年 1 月 1 日
I have an image file of size 1000X1000 array. I need to convert it to a three column format with the first two columns representing coordinates and the third column representing the pixel value or in my case height/intensity values. Any options for doing this?
Bharath
  1 件のコメント
Image Analyst
Image Analyst 2013 年 1 月 1 日
Why do you want to do this? How will this help you?

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

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 1 月 1 日
[r, c] = find( true(size(YourArray));
col3 = [r(:), c(:), YourArray(:)];

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by