Converting an image into three column format

3 visualizaciones (últimos 30 días)
Bharathwaj
Bharathwaj el 1 de En. de 2013
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 comentario
Image Analyst
Image Analyst el 1 de En. de 2013
Why do you want to do this? How will this help you?

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 1 de En. de 2013
[r, c] = find( true(size(YourArray));
col3 = [r(:), c(:), YourArray(:)];

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by