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
7
votes
2 answers

Implement Imageview Rotation with screen limit in the below class

I am developing an android application for Image Zooming,Drag,Rotation to the outside of screen limit. First I have to fit the image to the whole screen programmatically and perform the zooming,rotation,drag operation on image to the outside of…
Satheesh
  • 1,722
  • 25
  • 35
7
votes
1 answer

Image effects with rotation and pinch to zoom using GLSurfaceView Android

I was developing an application to apply effects/rotation/pinch to zoom in-out functionality on image. I have downloaded demo application from https://github.com/Grishu/ImageEffects. It works well, now my problems/questions are as below: Apply…
Hiren Dabhi
  • 3,693
  • 5
  • 37
  • 59
7
votes
2 answers

Positioning image on Google Maps with rotate / scale / translate

I'm developing a user-interface for positioning an image on a google map. I started from : http://overlay-tiler.googlecode.com/svn/trunk/upload.html which is pretty close to what I want. But instead of 3 contact points I want a rotate tool, a scale…
luxcem
  • 1,807
  • 22
  • 37
7
votes
3 answers

Rotate matrix in place

I'm solving the rotate an NxN matrix in place question. It seems that my code makes a rotation, but leaves an X over the image. So I'm guessing it's rotating the edges incorrectly. I'm attaching two images as sample input and output. What's…
Trevor
  • 1,858
  • 4
  • 21
  • 28
7
votes
2 answers

When click a button rotate image clockwise in android

I have a requirement where I have an ImageView and a button. http://i1289.photobucket.com/albums/b509/salikclub/Rotate-Last-Start_zps0d2fced8.png I want to rotate the image when I click the button. I need the image with full screen. but when I…
Ahamed Salik
  • 313
  • 2
  • 4
  • 18
6
votes
2 answers

Android: How to rotate a moving animated sprite based on the coordinates of its destination

My application fires up sprite instances around a Canvas which then move across the screen towards a x/y coordinate. I would like to be able to rotate the sprite around its center so that it faces its destination coordinates. I am using a…
bwags
  • 998
  • 9
  • 16
6
votes
1 answer

How to detect good features for rotationally aligning microscope images to a template

I'm working on a project to automatically rotate microscope image stacks of a fluid experiment so that they are lined up with images of the CAD template for the microfluidic chip. I am using the OpenCV package in Python for image processing. Having…
6
votes
1 answer

How do I rotate an image in the frequency domain?

I've heard that it should be possible to do a lossless rotation on a jpeg image. That means you do the rotation in the frequency domain without an IDCT. I've tried to google it but haven't found anything. Could someone bring some light to this? What…
onemasse
  • 6,514
  • 8
  • 32
  • 37
6
votes
1 answer

OpenCV Straighten an Image with Python

Is there any way that I can straighten this image using OpenCV with Python? I was figuring it out using the different transformations but I cant get it. Here is my code: rows, cols, h = img.shape M = np.float32([[1, 0, 100], [0, 1, 50]]) And then…
rbo13
  • 365
  • 3
  • 5
  • 14
6
votes
2 answers

Pinch Zoom and 2 finger Rotation the ImageView in Android

I've a problem from last 2 days and unable to tackle it as I'm newbie. Actually I'm working on an Android App that needs pinch-zoom and 2-finger rotation on Android ImageView. I got the multiple tutorials and solutions that work fine for Pinch Zoom…
6
votes
1 answer

rotate image by its own center in canvas

I have a strange problem, when i do the rotation passing the literal angle value(i get the previous angle printed by console and put instead the variable) it works perfectly but if i run the code passing a variable like my code below, the image is…
6
votes
2 answers

android what should be pivot point to rotate image around its center of base

Please read the whole question carefully before marking duplicate or closing it I want to rotate a image(specifically arrow image) around its center point of base. e.g. At start my image will be like second hand in a clock on 9. And suppose if I…
Shirish Herwade
  • 11,461
  • 20
  • 72
  • 111
6
votes
2 answers

How to rotate image in picture box

I am making a winforms application. One of the features I hope to implement is a rotating gear on the home form. When the home form is loaded, you should hover over the picture of the gear, and it should rotate in place. But all I have so far is…
Nicholas Aysen
  • 568
  • 3
  • 18
  • 40
6
votes
5 answers

Detect degree of rotation of an image

I am doing a project in opencv to detect handwritten characters from a user filled form. I have made algorithm to detect the skew angle of the scanned image using Hough Line Transform. But it does not work when the image is 180 degree rotated since…
g.alisha12
  • 246
  • 1
  • 3
  • 10
6
votes
1 answer

Wrong rotation when loading image using CGImageSourceRef

I load images in a C++ library using the code below. When loading some images the rotation of the image is wrong. It seems to affect JPEGs that come from the iPhone camera. How do I fix this? Presumably there is a flag somewhere that gets set for…
Robotbugs
  • 4,307
  • 3
  • 22
  • 30