matlab - Function to map an image to 3D point by point -
i trying map image point point 3 dimensional space.
for example, if original image has intensity of 100 @ location x, want plot point in 3d location y intensity of 100. want repeat steps every point/pixel, , final image. biggest problem want point point.
i appreciate comments or advice. thank you.
=======================
p.s.
as writing question, came idea. know how print 'whole' image location/shape in 3d using warp() function. instead of using whole image argument warp function, if give 1 point intensity value , 1 3d point arguments warp function, , repeat steps every image point, descent looking final image in 3d? if there better function use, please let me know.
sounds looking scatter3:
i = imread('cameraman.tif'); [x y]=meshgrid(1:size(i,1), 1:size(i,2)); scatter3(x(:),y(:),i(:),15,i(:),'filled'); axis tight; colormap gray and (after changes view point):

ps,
used single scatter3 command plot points @ once. may (i have no idea why so) 1 one
figure; ii=1:numel(x) scatter( x(ii), y(ii), i(ii), 15, i(ii), 'filled'); hold on; % need this! end axis tight; colormap gray;
Comments
Post a Comment