필터 지우기
필터 지우기

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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by