how to rotate Image around its diameter?
Show older comments
i want to rotate image around its diameter (horizontal or vertical )not its center (clockwise ........)
with specific angel
1 Comment
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
Answers (2)
Bjorn Gustavsson
on 11 Jun 2013
It sounds like you want to do something like:
ImOut1 = fliplr(ImIn);
ImOut2 = flipud(ImIn);
ImOut3 = flipdim(ImIn,dim);
HTH
Image Analyst
on 11 Jun 2013
0 votes
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
Isee You
on 11 Jun 2013
Bjorn Gustavsson
on 11 Jun 2013
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.
Isee You
on 11 Jun 2013
Bjorn Gustavsson
on 12 Jun 2013
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.
Isee You
on 12 Jun 2013
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!