Learning OpenCV Computer Vision with the OpenCV Library.pdf

所需积分/C币:50 2015-02-13 11:57:21 13.24MB PDF

Th is book provides a working guide to the Open Source Computer Vision Library(OpenCV) and also provides a general background to the fi eld of computer vision sufficient to use OpenCV eff ectively. Purpose: Computer vision is a rapidly growing field, partly as a result of both cheaper and more capab
Learning OpenCV by Gary Bradski and Adrian Kaehler Copyright o 2008 Gary Bradski and Adrian Kaehler. All rights reserved Printed in the United States of America Published by O reilly Media, InC, 1005 Gravenstein Highway North, Sebastopol, CA 95472 OReilly books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles(safari oreilly. com). For more information, contact our corporate/institutionalsalesdepartment(800)998-9938orcorporate@oreilly.com Editor: mike loukides Cover Designer: Karen Montgomery Production Editor: Rachel Monaghan Interior Designer: David Futato Production Services: Newgen Publishing and Illustrator: Robert Romano Data services Printing History September 2008: First Edition Nutshell Handbook, the Nutshell Handbook logo, and the OReilly logo are registered trademarks of O Reilly Media, InC. Learning Open CV, the image of a giant peacock moth, 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 con tained herein y This book uses Repkover, a durable and flexible lay-flat binding ISBN:978-0-596-51613-0 N Contents Preface IX 1. Overview What Is OpenCv? Who Uses OpenCv? What Is Computer vision The Origin of opencv 268 Downloading and installing opencv Getting the latest opencv via CVs 10 More OpenCV Documentation Opencv structure and content Portability Exercises 15 2. Introduction to OpenCv 16 Getting started 16 First Program--Display a Picture 16 Second Program -AVI Video 18 Moving around 19 A Simple transformation 22 A Not-So-Simple transformation 24 Input from a camera Writing to an AVI file 27 Onward 29 Exercises 3. Getting to Know OpenCV 31 Open cv primitive data Types 31 CyMat matrix Structure lMage data structure 42 Matrix and Image operators ng Things Data persistence 82 Integrated Performance Primitives 86 Summar 8 Exercise 87 4. HighGUI 90 A Portable graphics Toolkit 90 Creating a Window 91 Loading an image Displaying Images 93 Working with video 102 ConvertImage 106 Exercises 107 5. Image Processing ..109 Overview 109 Smoothing 109 Image Morphology 115 Flood fill 124 Resize 129 Image pyramids 130 Threshold 135 Exercises 141 6. Image transforms 144 Overview 144 Convolution 144 Gradients and Sobel derivatives 148 Laplace 150 anny 151 Contents Hough Transforms 153 Remap 162 Stretch, Shrink, Warp, and rotate 163 Cart To Polar and polartoCart 172 LogPolar 174 Discrete Fourier Transform(DFT) 177 Discrete Cosine Transform(DCT) 182 Integral Images 182 Distance transform 185 Histogram Equalization 186 Exercises 190 7. Histograms and Matching 193 Basic Histogram Data Structure 195 Accessing Histograms 198 Basic Manipulations with Histograms 199 Some more Complicated stuff 206 exercises 219 8. Contours Memory storage 222 S 223 Contour Finding 234 Another Contour Example 243 More to do with contours 244 Matching Contours 251 Exercises 262 9. Image parts and segmentation 265 Parts and Segments 265 Background Subtraction 265 Watershed algorithm 295 Image Repair by Inpainting 297 Mean-Shift Segmentation 298 Delaunay triangulation, Voronoi Tesselation 300 Exercises 313 Contents 10. Tracking and motion 316 he Basics of Tracking 316 Corner Finding 316 Subpixel corners Invariant Features 321 Optical flow 322 Mean-Shift and Camshift Tracking 337 Motion Templates 341 Estimators 348 The Condensation Algorithm 364 Exercises 367 11. Camera models and calibration 370 Camera model 371 Calibration 378 Undistortion 396 Putting Calibration All Together 397 Rodrigues transform 401 Exercises 403 12. Projection and 3D Vision 405 Projections 405 Affine and Perspective Transformations 407 POSIT: 3D Pose estimation 412 Stereo Imaging 415 Structure from motion 453 Fitting Lines in Two and Three Dimensions 454 Exercises 458 13. Machine Learning 459 What is machine learning 459 Common Routines in the ml library 471 Mahalanobis distance 476 K-Means 479 Naive/ Normal bayes classifier 483 Binary Decision Trees 486 Boosting 495 Contents Random trees 501 Face Detection or haar Classifier 506 Other Machine Learning algorithms 516 Exercises 14. 0penCV's Future ..521 Past and future 521 Directions 522 Opencv for Artists 525 Afterword 526 Bibliography 527 Index 543 ontents|ⅶi Preface This book provides a working guide to the Open Source Computer Vision Library (OpenCV) and also provides a general background to the field of computer vision suf- ficient to use Open cv effectively Purpose Computer vision is a rapidly growing field, partly as a result of both cheaper and more capable cameras, partly because of affordable processing power, and partly because vi- sion algorithms are starting to mature. Open CV itself has played a role in the growth of computer vision by enabling thousands of people to do more productive work in vision With its focus on real-time vision, Opencv helps students and professionals efficiently mplement projects and jump-start research by providing them with a computer vision and machine learning infrastructure that was previously available only in a few mature research labs. The purpose of this text is to Better document OpenCV-detail what function calling conventions really mean and how to use them correctly. Rapidly give the reader an intuitive understanding of how the vision algorithms Give the reader some sense of what algorithm to use and when to use it Give the reader a boost in implementing computer vision and machine learning algo rithms by providing many working coded examples to start from Provide intuitions about how to fix some of the more advanced routines when some thing goes wrong Simply put, this is the text the authors wished we had in school and the coding reference book we wished we had at work This book documents a tool kit, OpenCV, that allows the reader to do interesting and fun things rapidly in computer vision. It gives an intuitive understanding as to how the algorithms work, which serves to guide the reader in designing and debugging vision


评论 下载该资源后可以进行评论 7

fjqlldg 很不错的资源。谢谢?
gfenlan 很不错资源,不是影印的,带目录,很好,谢谢~
richardsj 非扫描版,真正的电子英文版,带目录,是网上我能找到的最好的pdf了,但和最新的原版相比还少了很多章节,原版一共23章,这个只有14章
jannot2000 不错的学习资料
airrery 很棒的一本书,学习opencv必备

关注 私信 TA的资源