Questions tagged [distortion]

356 questions
40
votes
6 answers

CSS image scaling to fit within area not distort

Is there a way with CSS or otherwise of making an image fit within an area. Lets say I have multiple images of different sizes and I want them all to fit within a div of 150px by 100px. I don't want to scale the images though as some may be tall and…
Walrus
  • 19,801
  • 35
  • 121
  • 199
21
votes
9 answers

How do I stop a CSS layout from distorting when zooming in/out?

I've set up a very basic site with a #container div that includes the #navbar and #content. However, when I zoom in or out, the #navbar distorts, if I zoom in the links get pushed down below each other instead of being inline. If I zoom out, too…
Pztar
  • 4,274
  • 6
  • 33
  • 39
19
votes
3 answers

Correct barrel distortion in OpenCV manually, without chessboard image

I get images from a camera where it is not possible to take a chessboard picture and calculate the correction matrix using OpenCV. Up to now I corrected the images using imagemagick convert with the option '-distort Barrel "0.0 0.0 -0.035 1.1"'…
Michael Hecht
  • 2,093
  • 6
  • 25
  • 37
18
votes
4 answers

Formulas for Barrel/Pincushion distortion

Can't understand how to get (x', y') of original (x, y) in image, for Barrel/Pincushion distortion.
breethe
  • 613
  • 1
  • 6
  • 18
17
votes
1 answer

How to implement Drag Distortion Image filter in android?

I am working on custom image filter project. And I came across one challenging task, in which I am supposed to apply distorted filters as can be seen in Funny face effect app. I want to develop first 3 filters as available in Funny Face Effects. So…
Maddy
  • 4,525
  • 4
  • 33
  • 53
17
votes
7 answers

Re-distort points with camera intrinsics/extrinsics

Given a set of 2D points, how can I apply the opposite of undistortPoints? I have the camera intrinsics and distCoeffs and would like to (for example) create a square, and distort it as if the camera had viewed it through the lens. I have found a…
Andy
  • 171
  • 1
  • 1
  • 3
15
votes
1 answer

android audio distortion on square waveform

I found that my smartphone (android 4.2.2) is not able to generate square waveforms (i need it to use the audio output as serial line for data transfer). At beginning i supposed it was my application, but then i made many significant tests. These…
Gaucho
  • 1,328
  • 1
  • 17
  • 32
15
votes
9 answers

Opencv: distort back

I have the cameraMatrix and the distCoeff needed to undistort an image or a vector of points. Now I'd like to distort them back. Is it possible with Opencv? I remember I read something about it in stackoverflow but cannot find now. EDIT: I found the…
nkint
  • 11,513
  • 31
  • 103
  • 174
14
votes
2 answers

HOW TO use Homography to transform pictures in OpenCV?

I've two pictures (A and B) slightly distorted one from the other, where there are translation, rotation and scale differences between them (for example, these pictures:) Ssoooooooo what I need is to apply a kind of transformation in pic B so it…
marcelosalloum
  • 3,481
  • 4
  • 39
  • 63
13
votes
2 answers

Is there a camera calibration matrix database?

Is there a free-access database containing camera calibration parameters (camera matrices, intrinsic and extrinsic parameters) for the most popular devices? I'm particularly interested in mobile-phone cameras or tablets with fixed focal length more…
11
votes
4 answers

Fisheye/Wide-Angle lens Calibration in OpenCV

I know the default OpenCV Calibration systems model a Pinhole camera, but I'm working with a system using extremely wide FOV lens (187-degrees). If there any existing way to do this in OpenCV, or to work with just wide lenses? Or will I have to…
Yeraze
  • 3,269
  • 4
  • 28
  • 42
10
votes
3 answers

Opengl perspective distortion

I'm having this weird issue and I'm hoping someone could clear this up for me so I can understand what's wrong and act accordingly. In OpenGL (fixed-function) I'm rendering a tube with inner faces in an orthographic projection. The image below shows…
Will Kru
  • 5,164
  • 3
  • 28
  • 41
9
votes
2 answers

TensorFlow: How to apply the same image distortion to multiple images

Starting from the Tensorflow CNN example, I'm trying to modify the model to have multiple images as an input (so that the input has not just 3 input channels, but multiples of 3 by stacking images). To augment the input, I try to use random image…
b3nk4n
  • 1,101
  • 1
  • 11
  • 17
9
votes
3 answers

How to fix image perspective distortion and rotation with JavaScript?

I have some images that takes using mobile phone. Is there any JavaScript library which can straighten the photo of a paper and flatten it? For example I want to create a rectangular image without any distortion from this image. In the other words I…
b24
  • 2,425
  • 6
  • 30
  • 51
9
votes
5 answers

How to distort an image to any quadrangle?

Do any of you have an idea, how to distort an image in any quadrangle? I want to implement an image, which you can pull any corner in any direction, distorting the image. Anyone has an idea how to do that? I use and write stuff in android for a…
Geki
  • 247
  • 2
  • 11
1
2 3
23 24