Python Image Registration and Cropping?
Hello, Is there a Python tool or function that can register two images together (line them up visually), and then crop them to the common overlap area? I'm assuming this can probably be done with Python Imaging Library but I'm not very familiar with it yet. Any help or advice is appreciated! Thanks! -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Image Registration and Cropping?
On Sunday, May 4, 2014 11:51:00 AM UTC-4, Ian wrote: > On Sun, May 4, 2014 at 7:24 AM, Dave Angel wrote: > > > [email protected] Wrote in message: > > >> Hello, > > >> > > >> Is there a Python tool or function that can register two images together > >> (line them up visually), and then crop them to the common overlap area? > >> I'm assuming this can probably be done with Python Imaging Library but I'm > >> not very familiar with it yet. > > >> > > >> Any help or advice is appreciated! > > >> > > >> Thanks! > > >> > > > > > > Without some context I'd call the problem intractable. I've done > > > such things using Photoshop to insert elements of one image into > > > another. But even describing an algorithm is difficult, never > > > mind trying to code it. > > > > Well, fortunately there are known algorithms already: > > http://en.wikipedia.org/wiki/Image_registration > > > > > If I had such a challenge, I'd probably use Pillow, but not till > > > I knew what subset I was solving. > > > > I don't think Pillow has any support for registration. I'd probably > > start by looking for Python bindings of a library that does handle it, > > like ITK. Searching for "itk python" turns up a number of results. Thanks for the responses. More specifically, my scenario is that I have many aerial image stereo-pairs, and need to register each pair together and crop them to their overlapping area. The output should produce two images with the same field-of-view; and the only difference will be the perspective. Still searching for a suitable module that can easily do this sort of thing. -- https://mail.python.org/mailman/listinfo/python-list
Clip Raster Image Pair by Overlapping Area using Python
Hello, I have a set of aerial images which I am trying to clip by their overlapping areas, for use in a more involved program I am writing with PIL. What would be the best method with Python to extract the overlapping area from a pair of images? I know there are libraries out there that could do this, but I couldn't find any so far. I need to execute this through Python as it will be part of a batch processing script. Any ideas/advice would be great! Thanks so much in advance. -- https://mail.python.org/mailman/listinfo/python-list
Re: Clip Raster Image Pair by Overlapping Area using Python
On Monday, May 19, 2014 9:17:05 PM UTC-4, Chris Angelico wrote: > On Tue, May 20, 2014 at 11:05 AM, wrote: > > > I have a set of aerial images which I am trying to clip by their > > overlapping areas, for use in a more involved program I am writing with PIL. > > > > > > What would be the best method with Python to extract the overlapping area > > from a pair of images? I know there are libraries out there that could do > > this, but I couldn't find any so far. > > > > > > > The problem is that they won't absolutely perfectly match, so you need > > some sort of similarity check. That's hard - very hard. I suggest you > > find a stand-alone program that will do that part of the job; it'll be > > easier than finding a Python library for it. > > > > ChrisA Chris, Thanks for your response. For my purpose, the images won't have to be 'perfectly' matched, but hopefully as close as possible. Registration algorithms won't work for this reason--the images aren't identical to each other because of the different perspectives. -- https://mail.python.org/mailman/listinfo/python-list
