image-rotation

Rotating an image around a specified point doesn't work! (Android)

◇◆丶佛笑我妖孽 提交于 2019-12-01 11:21:36
问题 I'm rotating an ImageView with postRotate(float degrees, float px, float py), setting px and py to a few differnt values including (0,0) and (imgView.getHeight(),imgView.getWidth()) but it refuses to rotate around any other point than the center. I'm wondering whether it's got anything to do with the fact that my gravity is center in the LinearLayout? My layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill

code to rotate image captured by camera intent not working in Android

末鹿安然 提交于 2019-12-01 07:51:55
问题 I have a problem that my image captured using camera intent gets rotated, which I asked at Why does an image captured using camera intent gets rotated on some devices on Android? So as per the suggested answers there, I'm now trying to rotate the image which I get using camera(I have used camera intent). My code is, public class SimpleCameraActivity extends Activity { private static final int TAKE_PICTURE = 1888; private Uri imageUri; ImageView imageView; Bitmap bitmap; Button btnOK,

How do I rotate an image in the frequency domain?

点点圈 提交于 2019-12-01 05:54:08
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 I mean by lossless is that I don't lose any additional information in the rotation. And of course that's probably only possible when rotating multiples of 90 degrees. mpenkov You do not need to IDCT an image to rotate it losslessly (note that lossless rotation for raster images is only possible for angles that are multiples of 90 degrees). The

Rotate Images Around a Circle?

送分小仙女□ 提交于 2019-11-30 13:28:33
Please take a look at this app snapshot: This is a bank application. it has 6 buttons around the bank logo. You can rotate the images by click-and-hold in one of them and move your finger in either direction (clockwise or counter-clockwise). So, for example, I can rotate them to put the Currency Convertor image in the place of the Login image. In my app, I have 6 Images too, I want to rotate them. How can I do that? Update: BTW, this is an iPhone app but I think it is not iOS-specific issue. Assuming you don't need to change the items in the "menu" (enable/disable/order/visibility) you can

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

妖精的绣舞 提交于 2019-11-30 07:42:31
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 ground. Now, I want to add support to the case when the camera is not pointing straight down - meaning that the quadcopter now has a pitch / roll / yaw (Euler angles). The quadcopters Euler angles are known and I am searching for a method to compute and apply the transformation needed based on the known current Euler angles. So that the result image

Rotating a map using leaflet js library

落花浮王杯 提交于 2019-11-30 05:41:05
问题 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 custom plugin? 回答1: Leaflet doesn't currently support map rotation, because it wouldn't be supported by its full range of browsers. This also isn't supported by plugins, since rotation logic would need to be implemented in Leaflet core. 来源: https:/

How to perform zoom in/out ,rotation together in Android

只谈情不闲聊 提交于 2019-11-29 23:19:20
问题 I want to apply drag,zoom in/out,rotate using multitouch to two images .one image is placed on the top of the other. after applying these action Create a image from above two images after changes made by applying actions. I succeed in apply zoom/drag to top image ,created new image from that. main problem is 1.How to apply action to two images, one image at a time ? 2.How to switch to another image from currently showing image (which layout I should use)? 3.How user can have a facility to

Rotate Images Around a Circle?

那年仲夏 提交于 2019-11-29 19:01:25
问题 Please take a look at this app snapshot: This is a bank application. it has 6 buttons around the bank logo. You can rotate the images by click-and-hold in one of them and move your finger in either direction (clockwise or counter-clockwise). So, for example, I can rotate them to put the Currency Convertor image in the place of the Login image. In my app, I have 6 Images too, I want to rotate them. How can I do that? Update: BTW, this is an iPhone app but I think it is not iOS-specific issue.

Android - how to scale/move/rotate the imageviews on a imageview [closed]

泄露秘密 提交于 2019-11-29 13:11:29
I need to implement image editor project. basically, I need to add some icons,text over an input image then export to final image. Is there any good tutorial for this? What you are searching is android-multitouch-controller . I have implemented in one of my application. It is working fine. It has following facility. Multi touch image scaling Multi touch image zooming single touch image panning There are 3 projects. In that "MTPhotoSortr" is one which I used. You need to check as per your requirement. 来源: https://stackoverflow.com/questions/16710066/android-how-to-scale-move-rotate-the

Rotating BufferedImage changes its colors

拜拜、爱过 提交于 2019-11-29 12:37:21
I'm trying to code a class to seam carve images in x and y direction. The x direction is working, and to reduce the y direction I thought about simply rotating the image 90° and run the same code over the already rescaled image (in x direction only) and after that, rotate it back to its initial state. I found something with AffineTransform and tried it. It actually produced a rotated image, but messed up the colors and I don't know why. This is all the code: import java.awt.image.BufferedImage; import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp; import java.io.File;