MATLAB: How to rotate back a streched image

Image Processing Toolboxrotatestretched image

I have an image which is stretched in one direction. How can I turn it back to normal plane, so it becomes again a circle? I know about the scaling and calibration in both directions. Suppose that the pixel size in left-to-right direction is two times the one in up-to-down direction.
Thanks so much.
Steven

Best Answer

[rows, columns, numberOfColorChannels] = size(originalImage);
scaledImage = imresize(originalImage, [rows, int32(columns/2)]);
Related Question