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
204
votes
8 answers

How to rotate the background image in the container?

I want to rotate the image which is placed in the button of scrollbar in Chrome. Now I have a CSS with this content: ::-webkit-scrollbar-button:vertical:decrement { background-image: url(images/arrowup.png); -webkit-transform:…
priya
  • 2,057
  • 2
  • 13
  • 3
86
votes
8 answers

Android: How to rotate a bitmap on a center point

I've been looking for over a day for a solution to this problem but nothing helps, even the answers here. Documentation doesn't explain anything too. I am simply trying to get a rotation in the direction of another object. The problem is that the…
Stefan
  • 861
  • 1
  • 7
  • 4
52
votes
1 answer

How to make R's 'raster' package distinguish between positive and negative rotation matrices in GeoTIFFs?

It appears that the raster package in R doesn't distinguish between positive and negative rotations of GeoTIFFs. I have a feeling that it is because R is ignoring the negative signs in the rotation matrix. I'm not quite savvy enough to dig down…
Tedward
  • 1,652
  • 15
  • 19
47
votes
8 answers

iOS: Image get rotated 90 degree after saved as PNG representation data

I have researched enough to get this working but not able to fix it. After taking picture from camera as long as I have image stored as UIImage, it's fine but as soon as I stored this image as PNG representation, its get rotated 90 degree. Following…
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139
43
votes
3 answers

Detect if an OCR text image is upside down

I have some hundreds of images (scanned documents), most of them are skewed. I wanted to de-skew them using Python. Here is the code I used: import numpy as np import cv2 from skimage.transform import radon filename = 'path_to_filename' # Load…
singrium
  • 2,746
  • 5
  • 32
  • 45
41
votes
1 answer

Kinetic js drag, drop, resize and rotate image

I am trying to combine drag and drop resize image and rotating image on touch, and mine is behaving strange http://jsfiddle.net/littlechad/Kuaxn/ My code is as follows: function update (activeAnchor) { var group =…
littlechad
  • 1,202
  • 17
  • 48
40
votes
4 answers

Rotate Opencv Matrix by 90, 180, 270 degrees

I'm capturing image from webcam and I need to rotate it by right angle. I found myself theese functions: getRotationMatrix2D - to create rotation matrix (whatever it is) transform - transform one matrix to another by rotation matrix But, I don't…
user2041141
33
votes
9 answers

Rotate an Imagewith Animation

What I Have I have an arrow image (like the left one). When the user clicks on it, it should rotate 180 degree with an animation and should look like the right one. What I Have Done private void rotate(float degree, final int toggleV) { …
Aritra Roy
  • 15,355
  • 10
  • 73
  • 107
27
votes
3 answers

How to programmatically rotate image by 90 Degrees in iPhone?

Possible Duplicate: How to Rotate a UIImage 90 degrees? How to programmatically rotate image by 90 Degrees in iPhone?
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
25
votes
3 answers

Apply one animation to multiple views at the same time

So Id like to rotate a handful of views all at the same time, all using the same rotation specs. The issue is that for some reason the rotation acts differently for the second element. Apparently this has to do with the animation object actually…
Jameo
  • 4,507
  • 8
  • 40
  • 66
20
votes
2 answers

Lossless rotation of PDF files with imagemagick

I want to rotate a 351K PDF named 08-file.pdf using CLI tools. I've tried imagemagick: convert 08-file.pdf -rotate 90 08-file-rotated.pdf But the original quality: Suffered serious degradation: I've tried adding the -density 300x300 argument, but…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
20
votes
3 answers

How To Create a Rotating Wheel Control?

I am trying to implement the Rotatory wheel in android, just like the image displayed below.I came across the tutorial from this link. But i want to implement just as shown in the below image.The wheel consists of individual images.Does anybody have…
AkashG
  • 7,868
  • 3
  • 28
  • 43
18
votes
3 answers

Get new x,y coordinates of a point in a rotated image

I have Google Maps icons which I need to rotate by certain angles before drawing on the map using MarkerImage. I do the rotation on-the-fly in Python using PIL, and the resulting image is of the same size as the original - 32x32. For example, with…
Simon Kagwi
  • 1,636
  • 2
  • 19
  • 25
18
votes
1 answer

Some images are being rotated when resized

In a nutshell the purpose of the following code is to resize an image based on the target size and the multiplier (1x, 2x, 3x). This works fine except for some reason I haven't determined some images are being rotated. public void…
Erik
  • 820
  • 12
  • 22
18
votes
5 answers

Transform Image using Roll-Pitch-Yaw angles (Image rectification)

I am working on an application where I need to rectify an image taken from a mobile camera platform. The platform measures roll, pitch and yaw angles, and I want to make it look like the image is taken from directly above, by some sort of transform…
Tormod Haugene
  • 3,538
  • 2
  • 29
  • 47
1
2 3
56 57