ebook img

A Concise Introduction to Image Processing using C++ PDF

266 Pages·2008·5.457 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview A Concise Introduction to Image Processing using C++

A Concise Introduction to Image Processing using C++ © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 1 10/10/08 7:10:14 PM CHAPMAN & HALL/CRC Numerical Analysis and Scientific Computing Aims and scope: Scientific computing and numerical analysis provide invaluable tools for the sciences and engineering. This series aims to capture new developments and summarize state-of-the-art methods over the whole spectrum of these fields. It will include a broad range of textbooks, monographs and handbooks. Volumes in theory, including discretisation techniques, numerical algorithms, multiscale techniques, parallel and distributed algorithms, as well as applications of these methods in multi-disciplinary fields, are welcome. The inclusion of concrete real-world examples is highly encouraged. This series is meant to appeal to students and researchers in mathematics, engineering and computational science. Editors Choi-Hong Lai Frédéric Magoulès School of Computing and Applied Mathematics and Mathematical Sciences Systems Laboratory University of Greenwich Ecole Centrale Paris Editorial Advisory Board Mark Ainsworth Peter Jimack Mathematics Department School of Computing Strathclyde University University of Leeds Todd Arbogast Takashi Kako Institute for Computational Department of Computer Science Engineering and Sciences The University of Electro-Communications The University of Texas at Austin Peter Monk Craig C. Douglas Department of Mathematical Sciences Computer Science Department University of Delaware University of Kentucky Francois-Xavier Roux Ivan Graham ONERA Department of Mathematical Sciences University of Bath Arthur E.P. Veldman Institute of Mathematics and Computing Science University of Groningen Proposals for the series should be submitted to one of the series editors above or directly to: CRC Press, Taylor & Francis Group 4th, Floor, Albert House 1-4 Singer Street London EC2A 4BQ UK © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 2 10/10/08 7:10:14 PM (cid:48)(cid:85)(cid:66)(cid:76)(cid:73)(cid:83)(cid:72)(cid:69)(cid:68)(cid:0)(cid:52)(cid:73)(cid:84)(cid:76)(cid:69)(cid:83) (cid:33)(cid:0)(cid:35)(cid:79)(cid:78)(cid:67)(cid:73)(cid:83)(cid:69)(cid:0)(cid:41)(cid:78)(cid:84)(cid:82)(cid:79)(cid:68)(cid:85)(cid:67)(cid:84)(cid:73)(cid:79)(cid:78)(cid:0)(cid:84)(cid:79)(cid:0)(cid:41)(cid:77)(cid:65)(cid:71)(cid:69)(cid:0)(cid:48)(cid:82)(cid:79)(cid:67)(cid:69)(cid:83)(cid:83)(cid:73)(cid:78)(cid:71)(cid:0)(cid:85)(cid:83)(cid:73)(cid:78)(cid:71)(cid:0)(cid:35)(cid:11)(cid:11) (cid:45)(cid:69)(cid:73)(cid:81)(cid:73)(cid:78)(cid:71)(cid:0)(cid:55)(cid:65)(cid:78)(cid:71)(cid:0)(cid:65)(cid:78)(cid:68)(cid:0)(cid:35)(cid:72)(cid:79)(cid:73)(cid:13)(cid:40)(cid:79)(cid:78)(cid:71)(cid:0)(cid:44)(cid:65)(cid:73) (cid:39)(cid:82)(cid:73)(cid:68)(cid:0)(cid:50)(cid:69)(cid:83)(cid:79)(cid:85)(cid:82)(cid:67)(cid:69)(cid:0)(cid:45)(cid:65)(cid:78)(cid:65)(cid:71)(cid:69)(cid:77)(cid:69)(cid:78)(cid:84)(cid:26)(cid:0)(cid:52)(cid:79)(cid:87)(cid:65)(cid:82)(cid:68)(cid:0)(cid:54)(cid:73)(cid:82)(cid:84)(cid:85)(cid:65)(cid:76)(cid:0)(cid:65)(cid:78)(cid:68)(cid:0)(cid:51)(cid:69)(cid:82)(cid:86)(cid:73)(cid:67)(cid:69)(cid:83)(cid:0)(cid:35)(cid:79)(cid:77)(cid:80)(cid:76)(cid:73)(cid:65)(cid:78)(cid:84)(cid:0) (cid:39)(cid:82)(cid:73)(cid:68)(cid:0)(cid:35)(cid:79)(cid:77)(cid:80)(cid:85)(cid:84)(cid:73)(cid:78)(cid:71) (cid:38)(cid:82)(cid:163)(cid:68)(cid:163)(cid:82)(cid:73)(cid:67)(cid:0)(cid:45)(cid:65)(cid:71)(cid:79)(cid:85)(cid:76)(cid:222)(cid:83)(cid:12)(cid:0)(cid:52)(cid:72)(cid:73)(cid:13)(cid:45)(cid:65)(cid:73)(cid:13)(cid:40)(cid:85)(cid:79)(cid:78)(cid:71)(cid:0)(cid:46)(cid:71)(cid:85)(cid:89)(cid:69)(cid:78)(cid:12)(cid:0)(cid:65)(cid:78)(cid:68)(cid:0)(cid:44)(cid:69)(cid:73)(cid:0)(cid:57)(cid:85)(cid:0) (cid:46)(cid:85)(cid:77)(cid:69)(cid:82)(cid:73)(cid:67)(cid:65)(cid:76)(cid:0)(cid:44)(cid:73)(cid:78)(cid:69)(cid:65)(cid:82)(cid:0)(cid:33)(cid:80)(cid:80)(cid:82)(cid:79)(cid:88)(cid:73)(cid:77)(cid:65)(cid:84)(cid:73)(cid:79)(cid:78)(cid:0)(cid:73)(cid:78)(cid:0)(cid:35) (cid:46)(cid:65)(cid:66)(cid:73)(cid:72)(cid:0)(cid:46)(cid:14)(cid:0)(cid:33)(cid:66)(cid:68)(cid:69)(cid:76)(cid:77)(cid:65)(cid:76)(cid:69)(cid:75)(cid:0)(cid:65)(cid:78)(cid:68)(cid:0)(cid:55)(cid:73)(cid:76)(cid:76)(cid:73)(cid:65)(cid:77)(cid:0)(cid:33)(cid:14)(cid:0)(cid:45)(cid:65)(cid:76)(cid:69)(cid:75)(cid:0) (cid:48)(cid:65)(cid:82)(cid:65)(cid:76)(cid:76)(cid:69)(cid:76)(cid:0)(cid:33)(cid:76)(cid:71)(cid:79)(cid:82)(cid:73)(cid:84)(cid:72)(cid:77)(cid:83) (cid:40)(cid:69)(cid:78)(cid:82)(cid:73)(cid:0)(cid:35)(cid:65)(cid:83)(cid:65)(cid:78)(cid:79)(cid:86)(cid:65)(cid:12)(cid:0)(cid:33)(cid:82)(cid:78)(cid:65)(cid:85)(cid:68)(cid:0)(cid:44)(cid:69)(cid:71)(cid:82)(cid:65)(cid:78)(cid:68)(cid:12)(cid:0)(cid:65)(cid:78)(cid:68)(cid:0)(cid:57)(cid:86)(cid:69)(cid:83)(cid:0)(cid:50)(cid:79)(cid:66)(cid:69)(cid:82)(cid:84)(cid:0) (cid:48)(cid:65)(cid:82)(cid:65)(cid:76)(cid:76)(cid:69)(cid:76)(cid:0)(cid:41)(cid:84)(cid:69)(cid:82)(cid:65)(cid:84)(cid:73)(cid:86)(cid:69)(cid:0)(cid:33)(cid:76)(cid:71)(cid:79)(cid:82)(cid:73)(cid:84)(cid:72)(cid:77)(cid:83)(cid:26)(cid:0)(cid:38)(cid:82)(cid:79)(cid:77)(cid:0)(cid:51)(cid:69)(cid:81)(cid:85)(cid:69)(cid:78)(cid:84)(cid:73)(cid:65)(cid:76)(cid:0)(cid:84)(cid:79)(cid:0)(cid:39)(cid:82)(cid:73)(cid:68)(cid:0)(cid:35)(cid:79)(cid:77)(cid:80)(cid:85)(cid:84)(cid:73)(cid:78)(cid:71) (cid:42)(cid:65)(cid:67)(cid:81)(cid:85)(cid:69)(cid:83)(cid:0)(cid:45)(cid:14)(cid:0)(cid:34)(cid:65)(cid:72)(cid:73)(cid:12)(cid:0)(cid:51)(cid:89)(cid:76)(cid:86)(cid:65)(cid:73)(cid:78)(cid:0)(cid:35)(cid:79)(cid:78)(cid:84)(cid:65)(cid:83)(cid:83)(cid:79)(cid:84)(cid:13)(cid:54)(cid:73)(cid:86)(cid:73)(cid:69)(cid:82)(cid:12)(cid:0)(cid:65)(cid:78)(cid:68)(cid:0)(cid:50)(cid:65)(cid:80)(cid:72)(cid:65)(cid:69)(cid:76)(cid:0)(cid:35)(cid:79)(cid:85)(cid:84)(cid:85)(cid:82)(cid:73)(cid:69)(cid:82) © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 3 10/17/08 6:02:58 PM © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 4 10/10/08 7:10:15 PM A Concise Introduction to Image Processing using C++ Meiqing Wang Choi-Hong Lai © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 5 10/10/08 7:10:15 PM CRC Press Taylor & Francis Group 6000 Broken Sound Parkway NW, Suite 300 Boca Raton, FL 33487-2742 © 2009 by Taylor & Francis Group, LLC CRC Press is an imprint of Taylor & Francis Group, an Informa business No claim to original U.S. Government works Version Date: 20110725 International Standard Book Number-13: 978-1-58488-898-7 (eBook - PDF) This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint. Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying, microfilming, and recording, or in any information stor- age or retrieval system, without written permission from the publishers. For permission to photocopy or use material electronically from this work, please access www.copy- right.com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that pro- vides licenses and registration for a variety of users. For organizations that have been granted a pho- tocopy license by the CCC, a separate system of payment has been arranged. Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for identification and explanation without intent to infringe. Visit the Taylor & Francis Web site at http://www.taylorandfrancis.com and the CRC Press Web site at http://www.crcpress.com © 2009 by Taylor & Francis Group, LLC Table of Contents Preface xv Chapter 1 ■ Basic Concepts of Images 1 1.1 AnAlogue SIgnAlS 1 1.2 DIgItAl SIgnAlS 3 1.2.1 Sampling 4 1.2.2 Quantisation 5 1.3 grey-SCAle ImAgeS 6 1.3.1 Resolution 6 1.3.2 Grey Levels 6 1.4 Colour ImAgeS 7 1.4.1 The RGB Colour Model 9 1.4.2 The YIQ Colour Model 10 1.4.3 The YUV Model 11 1.4.4 The HSI Model 12 1.4.4.1 Conversion from the RGB Model to the HSI Model 14 1.4.4.2 Conversion from the HSI Model to the RGB Model 14 1.4.5 The CMY Model 16 1.5 ImAge StorAge FormAtS 17 1.5.1 The BMP Format 17 1.5.2 The RAW Format 18 vii © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 7 10/18/08 11:28:28 AM viii < table of Contents 1.5.3 The JPEG format 18 1.5.4 The GIF Format 19 1.6 VIDeO 19 1.7 exerCISeS 20 1.8 reFerenCeS 20 1.9 PartIaL CODe examPLeS 21 Project 1-1: Convert an 8-bit grey-scale image to a binary image 21 Project 1-2: Convert a 24-bit colour image to its red channel image 22 Project 1-3: Convert an 8-bit colour image to a grey-scale image 25 Chapter 2 ■ Basic Image Processing tools 29 2.1 COrreLatIOn OPeratIOn anD COnVOLutIOn OPeratIOn 30 2.1.1 Correlation Operations 30 2.1.2 Convolution Operations 32 2.2 FOurIer tranSFOrm 37 2.2.1 Continuous Fourier Transform 37 2.2.1.1 One-Dimensional Continuous Fourier Transform 37 2.2.1.2 Two-Dimensional Continuous Fourier Transform 38 2.2.2 The Discrete Fourier Transform 38 2.2.3 Properties of the Discrete Fourier Transform 39 2.2.4 The Fast Fourier Transform 41 2.3 the DISCrete COSIne tranSFOrm 42 2.4 the gaBOr tranSFOrm 43 2.5 the WaVeLet tranSFOrm 44 2.5.1 The Continuous Wavelet Transform 44 2.5.2 The Discrete Wavelet Transform 45 © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 8 10/10/08 7:10:16 PM table of Contents < ix 2.6 Further reaDIng: OrthOgOnaLIty anD COmPLeteneSS 46 2.6.1 Orthogonality 47 2.6.2 Completeness 47 2.7 exerCISeS 48 2.8 reFerenCeS 49 2.9 PartIaL CODe examPLeS 49 Project 2-1: Fourier Transformation 49 Project 2-2: DCT Transformation 58 Project 2-3: Wavelet Transformation and the inverse wavelet transformation 60 Chapter 3 ■ Preprocessing techniques for Images 65 3.1 PIxeL BrIghtneSS (grey-LeVeL) tranSFOrmatIOnS 66 3.1.1 Image Enhancement Based on Histogram 66 3.1.1.1 Histogram 66 3.1.1.2 Histogram Equalisation 66 3.1.2 Contrast Stretching 69 3.1.2.1 Linear Transform 70 3.1.2.2 The Limiting Linear Transform 70 3.2 COnCePtS anD mODeLS OF Image PrePrOCeSSIng 71 3.3 Image SmOOthIng 73 3.3.1 Spatial-Domain Methods 73 3.3.1.1 Neighbourhood-Averaging Methods 73 3.3.1.2 Threshold-Averaging Methods 75 3.3.1.3 Gaussian Filtering 75 3.3.1.4 Median Filtering 76 3.3.1.5 Weighted Median Filtering 77 3.3.2 Frequency-Domain Methods 78 3.3.2.1 Ideal Low-Pass Filtering 78 © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 9 10/10/08 7:10:17 PM x < table of Contents 3.3.2.2 Trapezoidal Low-Pass Filtering 79 3.3.2.3 Butterworth Low-Pass Filtering 79 3.4 Image enhanCement 80 3.4.1 Gradient 80 3.4.2 Gradient Image 81 3.4.3 Gradient Operators 81 3.4.3.1 Roberts Operator 83 3.4.3.2 Prewitt Operator 83 3.4.3.3 Sobel Operator 83 3.4.3.4 Laplacian Operator 84 3.4.4 High-Pass Filtering 85 3.4.4.1 Ideal High-Pass Filtering 85 3.4.4.2 Trapezoidal High-Pass Filtering 87 3.4.4.3 Butterworth High-Pass Filtering 87 3.5 Image reStOratIOn 87 3.5.1 Image Degradation Model 87 3.5.2 Image Restoration Based on the Degradation Model 89 3.5.2.1 Unconstrained Conditional Restoration 89 3.5.2.2 Constrained Conditional Restoration 90 3.5.3 Inverse Filtering 91 3.5.4 Wiener Filtering 92 3.5.5 Geometric Rectification 93 3.5.5.1 Spatial Geometric Transforms 94 3.5.5.2 Confirmation of Pixel Intensities 96 3.6 PrOCeSSIng methODS uSIng PartIaL DIFFerentIaL equatIOnS 97 3.6.1 Diffusion-Based Models 98 3.6.1.1 The Heat Conduction Model 98 3.6.1.2 The Anisotropic Diffusion Model 98 3.6.2 TV-Based Models 102 3.6.3 Discrete Formats of PDE Models 103 © 2009 by Taylor & Francis Group, LLC C8970_C000.indd 10 10/10/08 7:10:17 PM

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.