Converting an image into three column format
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Antworten (1)
Walter Roberson
am 1 Jan. 2013
[r, c] = find( true(size(YourArray));
col3 = [r(:), c(:), YourArray(:)];
0 Kommentare
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!