Plotting an image with its coordinates and RGB values
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a question about plotting images in Matlab. I have a 3D array which includes the X-Y-Z coordinates of each point and their RGB values as below:
surface=zeros(2000,2000,6); %%after filling the matrices, surface(:,:,1:3) represents RGB values for each point and surface(:,:,4:6) represents the X-Y-Z coordinates of each point and Z is zero so it's a 2D image
Is it possible to retrieve the image based on this array? I have taken a look at plot(),interp2() and ... non of them do what I want.
Thank you very much
0 Kommentare
Antworten (3)
Davide Frey
am 31 Jan. 2019
I think that
imshow(surface(:,:,1:3))
should do the trick...
0 Kommentare
Siehe auch
Kategorien
Mehr zu Geometric Transformation and Image Registration 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!