OReilly Programming Computer Vision with Python (2012).pdf

(63897 KB) Pobierz
902090017.007.png
902090017.008.png
Programming Computer Vision
with Python
Jan Erik Solem
Beijing • Cambridge • Farnham • Koln • Sebastopol • Tokyo
902090017.009.png 902090017.010.png 902090017.001.png 902090017.002.png 902090017.003.png 902090017.004.png 902090017.005.png
Programming Computer Vision with Python
by Jan Erik Solem
Copyright © 2012 Jan Erik Solem. All rights reserved.
Printed in the United States of America
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online
editions are also available for most titles ( http://my.safaribooksonline.com ). For more information,
contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com .
Interior designer:
David Futato
Project manager:
Paul C. Anagnostopoulos
Cover designer:
Karen Montgomery
Copyeditor:
Priscilla Stevens
Editors:
Andy Oram, Mike Hendrickson
Proofreader:
Richard Camp
Production editor:
Holly Bauer
Illustrator:
Laurel Muller
June 2012
First edition
Revision History for the First Edition:
2012-06-11
First release
See http://oreilly.com/catalog/errata.csp?isbn=0636920022923 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks
of O’Reilly Media, Inc. Programming Computer Vision with Python , the image of a bullhead fish,
and related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc.,
was aware of a trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors
assume no responsibility for errors or omissions, or for damages resulting from the use of the
information contained herein.
ISBN: 978-1-449-31654-9
[M]
Table of Contents
Preface .......................................................vii
1. Basic Image Handling and Processing ...............................1
1.1 PIL—The Python Imaging Library
1
1.2 Matplotlib
3
1.3
NumPy
7
1.4
SciPy
16
1.5 Advanced Example: Image De-Noising
23
Exercises
26
Conventions for the Code Examples
27
2.
Local Image Descriptors ........................................29
2.1 Harris Corner Detector
29
2.2 SIFT—Scale-Invariant Feature Transform
36
2.3 Matching Geotagged Images
44
Exercises
51
3.
Image to Image Mappings ......................................53
3.1 Homographies
53
3.2 Warping Images
57
3.3 Creating Panoramas
70
Exercises
77
4.
Camera Models and Augmented Reality .............................79
4.1 The Pin-Hole Camera Model
79
4.2 Camera Calibration
84
4.3 Pose Estimation from Planes and Markers
86
4.4 Augmented Reality
89
Exercises
98
iii
902090017.006.png
 
Zgłoś jeśli naruszono regulamin