Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70910

Re:Python Image Registration and Cropping?

From Dave Angel <davea@davea.name>
Subject Re:Python Image Registration and Cropping?
Date 2014-05-04 09:24 -0400
Organization news.gmane.org
References <e12705fa-8f47-4046-8382-a52a9c17281b@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.9673.1399209520.18130.python-list@python.org> (permalink)

Show all headers | View raw


mikejohnryan08@gmail.com 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.

If I had such a challenge,  I'd probably use Pillow, but not till
 I knew what subset I was solving. 

1) you had an image, saved in lossless tiff, and it was copied
 twice,  each was edited and cropped,   and the original lost. 
 Analyze the two remaining tiff,  and try to reconstruct the
 largest common subset.

2) You have two faxes from filled in versions of the same original
 form,  and you're trying to extract just the handwriting portions
 of each. Very tricky,  because not only exposure differences, 
 but registration will vary over the surface,  because of moisture
 and irregular feed from multiple rollers. 

3) You have two jpegs, created from same master,  but one has been
 scaled, rotated, cropped, and color corrected.  Even without
 color correction,  one was saved at a different quality setting, 
 or prepared with a different raw converter. 

4) You have two images taken with the same camera, on a tripod,
 within a minute of each other,  with no visible difference of
 cloud cover,  with camera set on full manual,  without auto
 focus. The were converted with the same raw converter, 
 ...

etc.

-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python Image Registration and Cropping? mikejohnryan08@gmail.com - 2014-05-03 14:47 -0700
  Re: Python Image Registration and Cropping? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-05-03 23:04 +0100
  Re:Python Image Registration and Cropping? Dave Angel <davea@davea.name> - 2014-05-04 09:24 -0400
  Re: Python Image Registration and Cropping? Ian Kelly <ian.g.kelly@gmail.com> - 2014-05-04 09:51 -0600
    Re: Python Image Registration and Cropping? mikejohnryan08@gmail.com - 2014-05-04 17:56 -0700
      Re: Python Image Registration and Cropping? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-05-06 20:09 -0400

csiph-web