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
4
votes
1 answer

FFmpeg rotated transparent images colorfill not working properly

I am scaling and rotating a transparent (spade.png) image and placing it as overlay on an input image and save the output.png. This is my command: ffmpeg -y -i input.png -i spade.png -filter_complex…
SebSob
  • 552
  • 7
  • 22
4
votes
6 answers

Rotate NSImage in Swift, Cocoa, Mac OSX

Is there an easy way to rotate a NSImage in a Mac OSX app? Or just set the orientation from portrait to landscape using Swift? I am playing around with CATransform3DMakeAffineTransform but I can't get it to work.…
stefOCDP
  • 803
  • 2
  • 12
  • 20
4
votes
2 answers

Monogame rotating a sprite

I am trying to rotate a sprite in Monogame, but for some reason I can't get it right! I would be really grateful if someone explains the mystery of rotation! This is the line of code that I am using to draw and rotate my sprite, just a note the…
Darkbound
  • 3,026
  • 7
  • 34
  • 72
4
votes
3 answers

display image between four corner points Matlab

Suppose I have 4 corner points : (x1, y1) ; (x2, y2) ;(x3, y3) ; (x4, y4) and a rectangular image size (m,n) How do I display the image such that the image when shown has its corners at the four mentioned points. In other words, four corners can…
4
votes
2 answers

Android: How to rotate a view with one finger

I need to rotate a view which have some buttons. With the finger movement, view should also rotate along with it's child views accordingly. Till now I have implemented this: private RelativeLayout mCircle; private double mCurrAngle = 0; private…
Pramod Ravikant
  • 1,039
  • 2
  • 11
  • 28
4
votes
4 answers

Flipping Image Python

I am trying to flip an image horizontally. From this: To This: But I keep getting it mirrored half way. Like This: I am trying to reverse the x-axis index and I don't understand why it is being divided. def…
user3956566
4
votes
1 answer

OpenCV full rotation from moments?

I'm trying to recognize an object in an image from a previously stored contour of the same object. Having had immense trouble with feature detection (my objects don't seem to have any features, at least not all of them), I've gotten much better…
4
votes
2 answers

How can I speed up rotating a huge TIFF by 90 degrees

I'm processing huge TIFF images (grayscale, 8 or 16 bit, up to 4 GB) to be used as high resolution input data for a machine. Each image needs to be rotated by 90 degrees (clockwise). The input TIFF can be LZW or uncompressed, the output may be…
nullp01nter
  • 522
  • 4
  • 18
3
votes
6 answers

Image rotation animation

Perhaps a question with a simple answer. I'm trying to animate a ship (asteroids style). Right now I'm just using the Graphics2D rotate method. However, right now it's just blurring my image. What's the simplest way of going about this and getting…
Rice_Crisp
  • 1,242
  • 1
  • 16
  • 33
3
votes
2 answers

Problem using jQuery cycle plugin as image rotator and a pager

I am trying to use jQuery in order to make a pager for tumbs and large images and I don't succeed. I am using this example from jQuery's site, I think I followed the direction but it doesn't seem to be worknig. I do see only the first image and not…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
3
votes
1 answer

using slider to rotate image in Matlab

I have a GUI (using GUIDE) in Matlab, this is how it looks: I want to rotate the image using slider and to show the change in real time. I use axes to display the image. how can I do this? EDIT: I'm building OCR application. this is how the plate…
Ofir A.
  • 3,112
  • 11
  • 57
  • 83
3
votes
1 answer

"args_0:0" when printing Tensor

I have an augmentation function that is being mapped into a generator; however, for some reason, the tfa.image.rotate function is causing an error. def customGenerator(input_file_paths, dims, data_type): for i, file_path in…
3
votes
1 answer

ImageView area is smaller than it's actual size

I have assigned a bitmap to a full-screen ImageView with canvas while streaming. Streaming works, the bitmap is shown in ImageView, but the active area of ImageView seems to be smaller than it's actual size. When I set the background color to…
3
votes
1 answer

How to rotate the image to 180 degree always using minAreaRect, c++

My Images; Requirement: I am not able to understand how axis is decided to make the image always horizontal. Algorithm: Read the image Find external contour Draw the contours Use the external contour to detect minArearect (bounding box will…
user9324107
3
votes
1 answer

Caman.js render applies to previous state instead of current state of canvas

I am creating a simple image redactor by javascript where the users should be able to rotate an image as well as to apply some filters implemented by Caman js. I am drawing the initial image in the following canvas: