getting the image from the given (x , y, z) coordinates and the RGB values...
Ältere Kommentare anzeigen
I have an excel sheet containing the (x,y,z) coordinates and RGB values of a cylindrical object. I have to find a method to visualize the complete scan of the cylindrical object using the (x,y,z) coordinates and the RGB values..any suggestions???
Antworten (2)
ramakrishna bathini
am 14 Feb. 2011
0 Stimmen
Walter Roberson
am 14 Feb. 2011
0 Stimmen
First, textscan() or dlmread() the data skipping all of the header information. textscan would make it easier.
Then as an approximation to the surface, scatter3() the x y z coordinates with some fixed marker size and with the color matrix set to be the array of RGB values rescaled to [0 1] (i.e., divided by 256)
scatter3() will get you a cloud rather than a surface. There are a number of methods to get to a surface, such as delauny() and trisurf() or some newer functions that aren't in the version I'm using (2008b)
2 Kommentare
ramakrishna bathini
am 14 Feb. 2011
Walter Roberson
am 14 Feb. 2011
For example, if you had vectors x, y, z, r, g, b, each representing one column of the input, then:
ballsize = 10;
scatter3(x, y, z, ballsize, [r, g, b]./255 )
Kategorien
Mehr zu Point Cloud Processing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!