How to save an image of a surface where the warp function was applied
Show older comments
I have built a surface in matlab and I used the print function to save a jpeg image of the surface. I was easily able to do that. However i wrapped a two demensional image over this three demensional surface by using the warp function. When using the print function to save the image, the image comes up as a blank plot. Does anyone know to save an image of a 3d surface when the warp function is applied? my code is shown below:
[x,y,z] = ellipsoid(0,0,0, 5,4,2,10);
threeDsurface = surf(x,y,z);
cd('C:\Documents\research');
wrappedimage = imread('image3.jpg', 'jpg');
warp(z, y, x, image3);
print(gcf, '-djpeg','figure.jpeg');
Answers (0)
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!