848 questions
0
votes
0
answers
40
views
Suggestions on how to fix holes appearing in 2D image rotation shader?
I have a HLSL shader I am using in unity and the idea is to take a 2D image and a depth map of that image, and rotate them based on an euler input. Right now it's rotating exactly how I want it to, ...
-1
votes
1
answer
60
views
I Want to Image rotation in a modal pop up (overflow: auto )with CSS and JQuery , Wnen i Apply some part of image cuts when angle 90 or 270
When image in vertical position watermark (date time) not show properly ](https://i.sstatic.net/LOlcendr.png)
Question:
I am working on a modal where an image can be rotated by 90 degrees each time ...
0
votes
0
answers
39
views
image showing sideways on apple mac
enter image description hereI created a website using a windows laptop but have been told that 1 of the pictures is showing sideways on an apple mac.
When I uploaded the photo and saved it all ...
0
votes
1
answer
97
views
How to rotate an image without extending the canvas using sharp?
I'm trying to rotate an image (e.g., by 45 degrees) using sharp without increasing the canvas size or reducing the content size (i.e. non-transparent pixels).
Currently, when I rotate the image, the ...
0
votes
1
answer
144
views
"Checkerboarding" effect when rotating sprite in software renderer?
I'm writing a 2D software renderer and when rotating in certain angles I will get a sort of "checkerboarding" effect with my sprite pixels:
To try and get proper rotation, I tried rounding/...
-2
votes
1
answer
84
views
rotating image using webGL in a wide canvas
i am developing a web app that will be able to do some image transformations one of them is image rotation, the problem is: as long as the canvas is square ( width = height ) every thing is ok, but ...
1
vote
1
answer
711
views
How to сorrectly recognize 90 and 270 degrees rotated text?
I need to do OCR task on images containing ordinary horizontal text, and, besides this, text with 90 and 270 degree rotation Like this
I use python and PaddleOcr .PaddleOCR can recognize rotated text, ...
1
vote
2
answers
614
views
Calculating center of rotation from Affine2D transformation matrix
I have two 2D images, where the second one undergoes translation and rotation, resulting the coordinates (xn, yn) in the first picture to move to (xn', yn').
I have no problem obtaining the rotation ...
1
vote
0
answers
20
views
Orienting a camera that orbits spheres in JOGL2
I'm modelling a simple solar system in jogl and the camera isn't able to look at a specific planet (Earth). I tweaked a lot of code and managed to get the camera to orbit around the planet, but when I ...
0
votes
0
answers
61
views
Custom Loss Function with Principal Component Angle Calculation in PyTorch Not Differentiable?
Approach: I wrote a custom loss function in PyTorch that compares the angular difference between the original (input) and reconstructed images based on their first principal component axes. This ...
-1
votes
2
answers
71
views
Pygame 2d games sprite rotation jagged edges
I was just wondering, how to make the edges of a rotated 2d sprite smooth? Take the online game lordz.io for example. Even when you spin around, the edges of the player are completely fine.
Is ...
0
votes
1
answer
117
views
vector animation in android compose
I have some problem: I want do clock arrow animation effect, but I can't find how I can set step count or step degree for my animation.
I'm using the following approach:
val rotation by ...
0
votes
1
answer
111
views
How to first rotate an image and then translate it in an image slider
I am trying to build an image slider in which when pressing the previous or next button my image slider first rotates 180deg then translates the width of the image to show next/previous image.
I can't ...
0
votes
1
answer
89
views
90 degrees rotation of a bmp image in c
I am trying to rotate a bmp image 90 degrees clockwise. However, I am stuck on how. I've managed to make only a 180 degrees rotation. Here is my code for the 180 degrees rotation
int row_size = ((...
2
votes
0
answers
284
views
How to Individually Rotate Letters within a PIL Image?
I am working on a project that involves generating captcha images using Python's Pillow (PIL) library. I want to add a feature where each individual letter in the captcha string is rotated on the ...
2
votes
2
answers
127
views
How adjust content width, height when rotate the block in css
There are many solutions on the Internet, but all of them are either crutches or do not work correctly. Perhaps there is a way to stretch the element in width and adjust the height when rotating more ...
1
vote
0
answers
115
views
CGImageSourceCreateThumbnailAtIndex doesnot rotate the image on ios 17
I use CGImageSourceCreateThumbnailAtIndex to resize and rotate a CGIImage. It works fine on ios 16 and below, but on ios 17, rotating does not work anymore.
CGImageSourceRef imageSource = ...
0
votes
0
answers
89
views
Python code not rotating and scaling image in affine transformations as expected
Problem:
I am trying to rotate and scale an image using the following Python code:
"""
img = matplotlib.pyplot.imread('letterR.jpg')
T = np.array([[0, 2, 0],
...
1
vote
0
answers
199
views
Rotate image, but keep flexbox sizing
I'm created a simple flexbox layout of a header, image and a footer. Header and footer are just one line of text, while the image takes the as much space as possible, centered. I need to rotate the ...
0
votes
1
answer
302
views
How to display vertically an array of turned images in SwiftUI?
My app has an array hand of a struct with a property let blatt: Image. During init, an Image is assigned to this property.
To display such an array horizontally, I use the following code (scaledWidth ...
2
votes
1
answer
718
views
Alignment of a 3D volume to its principal axes
I'm trying to align a rectangular prism contained in a 3D numpy array to the principal axes of the array. Specifically, I need to accomplish this alignment by rotating the full array, as opposed to ...
0
votes
1
answer
169
views
How to rotate an image of a skewed rectangle?
I am creating a python program that can analyze an image of a circuit board and identify parts of the image that have a label on them:
The green text under the labels is what the program is ...
0
votes
0
answers
82
views
Connection between the location of pixel and histogram
In the lecture we saw that rotating an image changes the histogram of the image. But what I do not understand is, how does rotating an image changes the histogram of an image ? Don't histograms mean ...
2
votes
1
answer
1k
views
Difference in rotated image when using cv.rotate and cv.warpAffine
I have observed that there is a difference between rotation using cv.warpAffine method and the cv.rotate method. The resulting images are different - while cv.rotate is perfect i.e. rotated image with ...
1
vote
0
answers
64
views
How to Read and display my new transformated pixel coordinate in c#
I've been working on a project for a week with the manipulation image coordinate, and I´m mostly done. However, I am experiencing some difficulties. I am programming with C# with the library Emgu.Cv (...
0
votes
1
answer
120
views
Wrong Values in the calculation of normalVector and z-coordinate rotation
I have three points-> point1, point2..
auto it = vectorList.begin();
Eigen::Vector3d point1 = *it++;
Eigen::Vector3d point2 = *it++;
Eigen::Vector3d point3 = *it;
I am using them for creating a ...
0
votes
1
answer
32
views
Compute dimension of unoccupied rectangle after rotation
I have a white rectangle of size 300 X 300 pixels. I have rotated the rectangle about the origin by 20 degrees clockwise.I would like to compute the length of a and b below.
Note:The background black ...
0
votes
0
answers
75
views
Estimate Rotation and translation from 2 camera facing each other
I am new to image processing and I have limited knowledge on OpenCV and other image processing tools. I have two cameras facing each other and both cameras are identical, but the lenses are different. ...
1
vote
0
answers
152
views
How OpenSFM is calculating the computed_rotation field for openstreetmap streetview images?
When the spherical images uploaded by mapillary to openstreetmap, it attaches fields to the images like computed_rotation, computed_altitude, computed_camera. In documentation, its mentioned that ...
0
votes
0
answers
104
views
Reversing 3d rotation rotation of a 2d rectangle
I am working on a project where I need to 'square up' a piece of paper in a photo, so it appears to have no rotation in 3d space. I have already written an algorithm to find the corners of the piece ...
1
vote
2
answers
372
views
How do I rotate a sprite in C without pixel gaps
I'm making a game engine in C and I have a rotation function that rotates an image to a degree. But there's a few problems with it. I previously had coordinates x and y, transformed them into nx, ny ...
1
vote
2
answers
732
views
3D Rotation on QML Object
I have a rectangular object that I would like to appear as if it has been rotated in 3D as shown in the picture below:
The transformation that I'm applying on the object rotates it along the Y-axis ...
0
votes
0
answers
309
views
How can i rotate arrow when you hover on select element
This is how it look like
And i want to rotate this arrow when you hover select element
I tried: select:hover ~ .arrow {transform: rotate(270deg);} but it doesnt work
I also tried do it withour '~' ...
1
vote
0
answers
29
views
Rotating an Image Along with a Custom Turtle Shape in Python's Turtle Module [duplicate]
I'm currently working with Python's turtle module and I have created a custom turtle shape using the "turtle.register_shape()" method. Specifically, I have loaded a rocket image from a "...
0
votes
1
answer
51
views
Revolve image around center (blurry and not exactly at center)
I'm trying to revolve a BufferedImage around its center. Here's my Code:
frame = new JFrame();
GridBagLayout gLayout = new GridBagLayout();
frame.getContentPane().setLayout(gLayout);
lbIm1 = new ...
0
votes
1
answer
190
views
How can I plot a specific profile from rotated data on contourf or pcolormesh graph
I have an image stored in a numpy array. I have created a function to rotate that data by an angle theta. To perform the rotation the function converts the index coordinates of the image (i,j) to (x,...
0
votes
1
answer
161
views
Does Imagick read iPhone Exif:Orientation wrong?
I try to autorotate some images from a zip with php. For the autorotate I'am using the Exif:Orientation informations of the image.
The code does work, but I have problems with some images which seems ...
0
votes
1
answer
69
views
How would I go about rendering a transparent and rotated image in Java?
I cannot seem to figure out how to draw a transparent and rotated image. I need to be able to draw an image that is transparent and rotated to a certain degree.
I tried this code:
// draws an image ...
0
votes
1
answer
308
views
Image rotation about the center in python
The answer asked in this assignment is the following:
Rotate the image around its center (that is the point of coordinates (100,100)) of an
angle theta sampled uniformly in the range [10, 80].
I tried ...
1
vote
1
answer
2k
views
Rotating the preview with CameraX
I have a proprietary device with a rotated camera, that doesn't report its rotation to the OS.
We use CameraX with PreviewView, and I get the image 90 deg rotated, and mirrored.
Is there an efficient ...
5
votes
5
answers
419
views
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 ...
1
vote
0
answers
144
views
How to make a smooth rotation during a continuous swipe on Android using Kotlin?
I have a circle as ImageView and I want to be able to smoothly rotate it when swiping with a finger. If I swipe slowly, I want the circle to rotate slowly until the swiping action stops. If I swipe ...
3
votes
1
answer
632
views
CapturePhotoAsync function on Xamarin Forms works well on emulator but rotates images on debugging with actual device
The Xamarin Essentials MediaPicker function to capture with camera using the CapturePhotoAsync runs correctly on the emulator but behaves differently when a mobile phone is connected to debug the ...
0
votes
2
answers
1k
views
Rotating sprite with a center of rotation in SDL2
I want to rotate a sprite in C and SDL2, with a set center of rotation, and without scaling or anti-aliasing.
My game resolution is 320x240, and the display is scaled up when I set the game to full ...
0
votes
1
answer
123
views
How to write the rotation 90 degree formula without python package?
I can only turn 180 degrees now:
import numpy as np
import math
import matplotlib.pyplot as plt
def my_flip(img1, type):
nr, nc = img1.shape[:2]
u = np.zeros( [ nr, nc ], dtype = 'uint8'...
0
votes
1
answer
185
views
How can I find the 2d-orientation of new images based on (several) training images?
I have an image of a dartboard (with the numbers 1-20). If I rotate this image let's say 80 degrees, I want my python code to be able to compare the second image to the first one, and know that the ...
1
vote
1
answer
85
views
Trying to parallelize a matrix rotation
I am trying to parallelize a matrix rotation in Julia. I'm using the Distributed package, but I'm still getting an error. My original (serial) code is as follows:
using Rotations
using ...
1
vote
1
answer
715
views
Rotation of 3d array and point cloud not matching
I have the following problem: I have a 3d numpy array representing a stack of images. I also have a point cloud (n,3) of some relevant locations in the 3d array, which I have plotted in there. I want ...
0
votes
0
answers
2k
views
Make an image rotate on page scroll
I'm trying to connect the rotation of an object to the scroll.
Here's how cargo tells you to rotate an image: start by opening Code View while editing a page; then wrap the element you want to rotate ...
0
votes
1
answer
331
views
Rotate ImageView without clipping
I want to change rotation dynamically, bud i faced with the problem. I did simple code example of my problem
as you can see parent cuts off piece of my image view when i set rotate
click here to see ...