distortion

How to fix: Full background image distorts in IE but works fine in chrome when using background-size: cover

我的梦境 提交于 2019-12-24 09:35:44
问题 Please have this CSS distortion I have been battling with cross browser: https://dim.crservicesplc.ng/ Works fine in chrome but distorts in all others chrome : IE, Edge, Firefox Assistance appreciated 回答1: References: http://www.w3schools.com/graphics/svg_rect.asp http://www.w3schools.com/graphics/svg_fegaussianblur.asp https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feGaussianBlur You could control intensity of filter from stdDeviation="15" and <rect style="opacity: 0.5;" /> and

Custom Android Camera Application, Camera Preview Issue

梦想的初衷 提交于 2019-12-22 18:34:06
问题 the camera preview is showing a distorted image, which is elongated while in portrait mode and flattened while in landscape. I have already resized preview with a million techniques. Then I read somewhere it must be something with resizing the SurfaceView . But so far I have not found anything suitable. This is my activity.java file: public class CameraActivity extends Activity { private Camera mCamera; private CameraPreview mPreview; private FrameLayout preview; private static final String

Correct lens distortion using single calibration image in Matlab

女生的网名这么多〃 提交于 2019-12-22 09:59:30
问题 I would like to correct lens distortions on a series of images. All the images were captured with the camera fixed in place, and a checkerboard image from the same set up is also available. After detecting the corners of the distorted checkerboard image, I would like to compute the radial distortion coefficients so that I can correct the images. Similar to the estimateCameraParameters function. Ideally, I would like to use a method similar to Matlab camera calibration however this does not

How to remove radial distortions from images using OpenCV?

廉价感情. 提交于 2019-12-21 04:33:34
问题 I think I should be using cv::remap to remove the distortion but can't figure out what the the maps const Mat& map1, const Mat& map2 to should be to achieve this. Should I be using the cv::initUndistortRectifyMap to find out the values? If so, I'd really appreciate an example. I do not have the intrinsic camera parameters or don't know how to calculate them. Thanks. 回答1: If you are looking to remove the distortion caused by the camera lens you should take a look at this answer I wrote some

FishEye Picture Effect (Barrel Distortion) Algorithm (with Java)?

放肆的年华 提交于 2019-12-21 02:56:56
问题 I'm looking for the algorithm (bitmap pixel manipulation) to simulate the fisheye lens (Barrel Distortion) from normal pictures. So far I've found implementation involving external libraries like OpenCV, OpenGL or jhlabs. Since I'm taking a class in Digital Image Processing and I'm making a course assessment project, I'm not sure whether using any external lib will earn me a good grade. So would anyone give me the reference to such algorithm? Ps. I'm asked to implement it in Java, but example

CSS image scaling to fit within area not distort

久未见 提交于 2019-12-18 12:46:37
问题 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 others narrow I simply want them to fit within this area with the rest hidden. I thought about using overflow:hidden but it appears to not be hidden in IE6. Any ideas? 回答1: You should try using this: img{ width: auto; max-width: 150px; height:

Barrel distortion correction algorithm to correct FishEye lens - failing to implement with Java

我的梦境 提交于 2019-12-18 05:59:27
问题 I have a large bulk of photographs taken with a fisheye lens. As I want to do some image-processing (e.g. edge detection) on the photos I want to remove the barrel distortion which effects my results heavily. After some research and lots of read articles I found this page: They describe an algorithm (and some formulas) to solve this problem. M = a *rcorr^3 + b * rcorr^2 + c * rcorr + d rsrc = (a * rcorr^3 + b * rcorr^2 + c * rcorr + d) * rcorr rsrc = distance of a pixel from the center of the

OpenGL ES 2.0 texture distortion on large geometry GL_REPEAT

落花浮王杯 提交于 2019-12-18 03:42:24
问题 OpenGL ES 2.0 has serious precision issues with texture sampling - I've seen topics with a similar problem, but I haven't seen a real solution to this "distorted OpenGL ES 2.0 texture" problem yet. This is not related to the texture's image format or OpenGL color buffers, it seems like it's a precision error. I don't know what specifically causes the precision to fail - it doesn't seem like it's just the size of geometry that causes this distortion, because simply scaling vertex position

Retrieving the original coordinates of a pixel taken from a warped Image

橙三吉。 提交于 2019-12-12 15:04:37
问题 I have four corners extracted from a sourceImage : src_vertices[0] = corners[upperLeft]; src_vertices[1] = corners[upperRight]; src_vertices[2] = corners[downLeft]; src_vertices[3] = corners[downRight]; These four corners are warped to destinationImage like that: dst_vertices[0] = Point(0,0); dst_vertices[1] = Point(width, 0); dst_vertices[2] = Point(0, height); dst_vertices[3] = Point(width, height); Mat warpPerspectiveMatrix = getPerspectiveTransform(src_vertices, dst_vertices); cv::Size

Pictures with patterns sometimes display strangely

霸气de小男生 提交于 2019-12-12 14:23:49
问题 My site is a clothing store, and my partner has complained about the following issue. The pictures of clothing with more complex patterns (checkerboard for example) displays like this: instead of this: I assume the other pictures are also displaying weirdly, but it's just less noticeable. As far as I can tell, it happens most often on Macs. If anyone has any information about this phenomenon it would be much appreciated. 回答1: This is called the Moiré effect. From a Wikipedia article: In