MATLAB: How to get slice planes correct

rotateslicevolumetric plots

I am trying to get a 3 planes rotated at different angles. I tried 0, 15 and 75 degrees. However, function rotate slices an additional information of the plot in such a way that if you increase a polar angle, the amount of cut-off image area increases. I cant seem to get around this problem. Does anyone know how to rotate a plane given a set of data. i.e. if i want plane to be rotated by required degrees, the plane actually contain these values and is rotated by required angle.
I will be immensely grateful for your help.
With kind regards, Sholpan

Best Answer

If you're using IMROTATE, that shouldn't be a problem. You have the option to crop the rotated image to the original image dimensions, but no cropping is the default.