Automated way to un-distort a distorted image [closed] - image

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
OK. Let's say that I have 2 images. The first is a set of lines that form a grid with a circle. The second is the same grid and circle DISTORTED. The second image is the distorted result of the first image when it is stretched over a 3D solid.
What I want to do is morph the circle in the second distorted image to where it would be in the first image before distortion. Stated differently, I want to predict what shape the circle needs to be before distortion so that when it is distorted it ends up looking like the perfect circle in the first image.
The grid is only there as an aid, I am really interested in the circle. The circle is just an idealized image. In real life the "circle" represents a graphic of some kind. The two images would be actual scans from the sheet before and after distortion. The distortion is also just idealized. In real life it is more complicated than this.
I am open to commercial software or using Matlab or other software to write something. I just have no idea where to start on this one. All ideas are appreciated.
BTW...here is a post that is somewhat similar in nature.
Original - Undistorted image:
After distortion:

Related

Want to learn 360 'adventures' like the link, similar to Google Street View [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to learn how to do some 360 image edits like the site below, and I'm really just looking for any information to point me in the right direction. All I was told by the site owners was "we cant give away anything, but three.js".
Can anyone else help point me in the right direction. I've googled it and its basically sending me in circles.
I just want to be able to move from location to location like Street view and add pointers/annotations.
https://www.xplorit.com/long-beach
Using THREE.js you can set your panoramic photo as the texture on a sphere... You have to flip the .side of the material so it only draws the inside of the sphere.. then use the OrbitController to let the user zoom in/out/rotate the view..
Check out this demo here, and see if you can drag one of your equirectangular images on it:
https://threejs.org/examples/webgl_panorama_equirectangular.html

Amazing algorithms for image processing [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have recently came across a great image processing algorithm called Seam Carving.
It uses graphs (Shortest Path algorithm) to do its job.
What other amazing algorithms are out there worth looking at?
I'm not talking about the majority of boring matrix based ones, rather something you could never think about before you came across it, just like this one.
Even though this is offtopic I'm going to answer ;)
In this page you can find algorithms which:
Depixelize an image
Color a black and white image
Restore a picture or make a HDR (whatever that means...)
Turn a photo into an hand-drawn like image
Seam carving
Remove objects
Compose a picture
Beautify a face

Creating picture from small images [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Let's say I have a very simple image with a few colours (white, black, grey). And I have a set of tiny images (lots of them). Is there any library that can help me rebuild the big image using all of the tiny images as building blocks? Like a mosaic.
Here's an example: http://d.pr/i/LJ0Z
P.S. I've tried to google a solution, but it seems I can't create correct search query because of my bad english. I only get software solutions for creating mosaics.
Just posting a solution to my problem here in case anyone will need in the future.
Let's say you have a simple image with a few colours. You need to re-create it with a set of smaller images (like a mosaic).
Split your image into cells (4x4, 8x8 or any other number) and assign corresponding colour for each cells (in other words "pixelate" your image), create array of cells for each color you have.
Implement listing #4 for Maximal Rectangle Problem from this article: http://www.drdobbs.com/database/the-maximal-rectangle-problem/184410529 (huge thanks to David Vandevoorde for such a great explanation!)
Now, for each small image you have (pieces of mosaic), determine its size as a rectangle. Then, using rectangle packing algorithm of your choice fill the max rectangles with these small images (I've been using this one for C#: http://kossovsky.net/index.php/2009/07/cshar-rectangle-packing/ again, huge thanks to the author for sharing!)
That's it. It's not very fast, but it gets the job done.
this search turns up various results:
andreamosaic
pixisnap
etc.
adding "python library" found osaic. repeat for whatever language you are using...

2d data matrix(barcode) detection algorithm is not giving me results [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am working on detection of 2d data matrix but there is a problem in detection because barcode changes its design in each product so how to detect it? can anybody help me ?
The specification of datamatrix is designed to be identified. You need to look at the code the way it is intended to be looked at. Where I'd start is that the code has a quiet zone and an "L" pattern. That is what you are looking for.
How you go about doing this depends a lot on the general parameters of the image.
The first consideration is lighting and contrast. Can you depend on having a fixed midpoint, where everthing lighter is called white and everything darker black? Or will a simple histogram give a usable midpoint? Or do shadows and uneven lighting cause a value to be called black on the sunny side of the image and the same tone white on the shadow side of an image? On a flatbed scanner it is easy to depend on good contrast, but camera phone photos are more problematic.
The next consideration is size and resolution. For a camera phone application, it is expected that in a low resolution image, a high percentage of the image will contain the barcode, while a scanner may have a lot of image and a little amount of barcode data which needs to be searched for.
Finally comes presentation. Will the barcode appear in 360 degrees of rotation? Will it be flat and level or can it be be skewed, curled and angled? Is there any concern about lens distortion?
Once you can answer the considerations, it should point to what you need to do to identify the barcode. Datamatrix has clocking marks which enable distorted codes to be read, but it is a lot more work to define distortion, so if it is not needed, you wouldn't do it.

Waiting/loading transparent GIF/APNG animations [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Where can I find some waiting/loading transparent GIF/APNG animations, but animation that are really transparent without some colored lines around shapes which I found on:
http://www.ajaxload.info/
http://www.loadinfo.net/
http://www.ajaxload.info/
http://www.chimply.com/Generator
I need one for program.
http://preloaders.net/
http://mentalized.net/activity-indicators/
http://www.webscriptlab.com/
http://loadinggif.com/
http://loadingapng.com/
http://cssload.net/
http://heartcode.robertpataki.com/canvasloader/ CSS/JS Based
Hope above links will be helpful.
I also have found it difficult to find a good waiting gif that has transparency. I took one of the ones from the 6th link on Ashish's answer and fixed it with GIMP so it didn't have white borders.
Here it is in case it's helpful to anyone:
Another one transparent gif loader without white border.
Here is a solution without images. only css/javascript. Have a look at the fiddle. very neat.... http://jsfiddle.net/qzLdjq3c/5/
$(window).load(function() {
$('.spinner').show();
$(".spinner").hide();
});

Resources