Questions tagged [image-rotation]

Image rotation is performing a geometric rotation with certain angle on a particular image.

Image rotation is performing a geometric rotation with certain angle on a particular image. An image can be rotated by a positive angle or negative angle, which will rotate the image clockwise or counterclockwise. Rotating an image by 360 degrees or -360 degrees will actually result in the same image as the original image, while rotating on 180 or -180 degrees will display an inverted copy of the original image.

844 questions
6
votes
1 answer

Rotating a map using leaflet js library

I need a map rotation feature just like the one available from openLayers 3 (check example below): http://ol3js.org/en/master/examples/drag-rotate-and-zoom.html Is there a way to do the same thing using the leafletjs library, or perhaps, using a…
Paulo
  • 128
  • 1
  • 6
6
votes
1 answer

Rotate an image in Matplotlib

I'm trying to plot a 2D image in Matplotlib (imported from a png) and rotate it by arbitrary angles. I want to create a simple animation showing the rotation of an object over time, but for now I'm just trying to rotate the image. I've tried several…
user2844064
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Want to rotate 3d image of min3d library on touch event

I got the sample min3d library code and sample from google.com. It is working perfect and even working with the changed image. Now I want to rotate the .obj file with touch event like rotating the car on finger touch. As it is using the animation…
user1381420RKS
  • 149
  • 1
  • 8
5
votes
1 answer

Rotate face in image

I have a problem, when i take a photo with my tablet, i use opencv for detecting a face and recognition a face. So i would try to rotate the face in order to have for example the eyes and mounth in the same position for example all with the same…
Marco Gallella
  • 793
  • 1
  • 11
  • 18
5
votes
1 answer

jquery problems with image rotate and zoom

I am trying to add functionality to a webpage that will allow the user to rotate and zoom in on images. I've found many jquery plugins that allow for zooming. None that also do rotation though. So I'm trying to use a jquery plugin for…
Scot
  • 572
  • 1
  • 7
  • 27
5
votes
1 answer

How to crop a cross rectangle from an image using c#?

I want to get some specific parts of an image so I'm cropping the images. However, when I want to get a part that is not parallel to the image, I rotate the image and crop afterwards. I don't want to rotate the image and crop a parallel rectangle.…
user1125953
  • 585
  • 2
  • 7
  • 18
5
votes
5 answers

How to smoothly align rotated bitmaps side by side without jerkiness?

My current program draw a rotated bitmap (64x64) and tile it on the screen by drawing it again but adding an offset based on the computed position of the bitmap top right corner (after rotation), it works fine but i experience some jerkiness of the…
Onirom
  • 532
  • 1
  • 7
  • 22
5
votes
3 answers

Android: Switch Height and Width when View change orientation

I do use PhotoView library to ZoomIn-Out. now when user click a button i prepared to rotate the PhotoView, Height and Width would rotate. so width which is smaller than the screen Height. and this result in i can't get the full screen zoom like…
5
votes
1 answer

ExifInterface constructor throws IOExxception

I am having trouble figuring out an exception that is thrown by ExifInterface constructor when trying to initialize the exif interface instance with a file path. UPDATED Please see the detailed code below as requested. File download function public…
rbing
  • 133
  • 1
  • 10
5
votes
3 answers

Transform a frame to be as if it was taken from above using OpenCV

I am working on a project for estimating a UAV (quadcopter) location using optical-flow technique. I currently have a code that is using farneback algorithm from OpenCV. The current code is working fine when the camera is always pointing to the…
A. Sarid
  • 3,916
  • 2
  • 31
  • 56
5
votes
1 answer

How do you draw an image to a rotated rectangle in FireMonkey?

In FireMonkey, it is simple to draw a bitmap to a source rectangle: Canvas.DrawBitmap(FBitmap, ImageSrcRect, ImageDstRect, 1); And I'm doing this on a TPaintBox's canvas. I would instead like to draw the bitmap rotated (and scaled, since the…
David
  • 13,360
  • 7
  • 66
  • 130
5
votes
2 answers

Rotate a UIImage or UIView to a particular angle, NOT an amount of angle

Objective-C for iOS. How do I rotate an image or view TO a particular angle. I have tried the two methods below, but both rotate the AMOUNT of angle, not TO the angle. Basically I would like to call a method to rotate to 90' and then say call again…
James Beith
  • 5,751
  • 3
  • 27
  • 21
5
votes
0 answers

Get image rotation using filedescriptor and parcelfiledescriptor in android from gallery

I want to get an image with a device higher then android kitkat. Currently I use the filedescriptor and parcelfiledescriptor to get the image. I get the image succesfully, but rotated. As the image is stored on google drive I can't use the…
jobbert
  • 3,297
  • 27
  • 43
5
votes
5 answers

I imrotate() an image, draw two lines, rotate back the lines and draw them in orginal image, but don't get the expected result in MATLAB?

What I want to do : Suppose I have an image I that I rotate -45° using imrotate (I get I_R). Then I draw two lines AB and CD (parallels). Finally, I rotate the two lines back (45°) and draw them in the original image I. How I do that ## I rotate I…
user813853
5
votes
1 answer

How to rotate the bitmap properly?

I've been having a lot of trouble with rotating the bitmaps. The code below works, but it is 4-6 times slower than the Gallery app that comes with the Galaxy Note 2 phone. Code: File DirectoryFile = new File(Image_Path); Bitmap bitmap =…
Dante
  • 465
  • 2
  • 12