how to rotate Image around its diameter?

i want to rotate image around its diameter (horizontal or vertical )not its center (clockwise ........)
with specific angel

1 Comment

Ahmed
Ahmed on 11 Jun 2013
Edited: Ahmed on 11 Jun 2013
I think you intend to change the perspective from which the image is seen. Right? http://www.mathworks.com/matlabcentral/fileexchange/28581-imsurf-3d-images

Sign in to comment.

Answers (2)

It sounds like you want to do something like:
ImOut1 = fliplr(ImIn);
ImOut2 = flipud(ImIn);
ImOut3 = flipdim(ImIn,dim);
HTH

1 Comment

no
i want to rotate image with specific angel to look like i change the angel of camera horizontal but i still have the same image just it look change a little bit

Sign in to comment.

I don't understand what you want. Please create something, say in Photoshop or whatever and upload somewhere, such as http://snag.gy. In the meantime, what is wrong with imrotate()?

5 Comments

i want to rotate image with specific angel to look like that i change the angel of camera horizontal but i still have the same image just it look change a little bit
Aboomnea, that looks like 2 images taken at slightly different positions with the bug seen from slightly different angles. That image pair, given that you'd know the position of the camera and its characteristics (focal width, rotation etc) can give you the shape an size of the object in the images. From one image only this is not really achievable. Similar but not equal objects can give identical images from one view-point, so one image does not have sufficient information to make it possible to determine what an image would look like from another view-point.
so there is no way to rotate image like that or similar to it .
i want to create 3d image from one image not two image .i search a lot but i cant rotate the image as i want
That's right, from one ordinary image it is not possible to determine if the object is small and close to the camera, or a larger-scaled object further away. To make your 3-d scene, that is the information you need.

Sign in to comment.

Asked:

on 11 Jun 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!