I am using the command WARP in image processing in MATLAB.
[x,y,z] = cylinder;
I = imread('testpat1.png');
warp(x,y,z,I);
Above is the example code for using WARP given in MATLAB. But I am not able to save the output of this command. If I do imwrite, just 1 X 1 matrix is saved.
Can anyone help me this ?
Thanks in advance
You should be able to use the following line of code to get the handle to the resulting surface object:
You can then access properties of that surface using
get(h, 'property')A list of the available properties is here
For example if you want to get the X coordinates you would do:
Xcoords = get(h, 'XData');hope that helps!
This is based on the comments below.