0% found this document useful (0 votes)
58 views

Image Processing and Acquisition using Python Chapman Hall CRC The Python Series 2nd Edition Chityala all chapter instant download

Chapman

Uploaded by

puchaateneiy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Image Processing and Acquisition using Python Chapman Hall CRC The Python Series 2nd Edition Chityala all chapter instant download

Chapman

Uploaded by

puchaateneiy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 50

Get ebook downloads in full at ebookmeta.

com

Image Processing and Acquisition using Python


Chapman Hall CRC The Python Series 2nd Edition
Chityala

https://ebookmeta.com/product/image-processing-and-
acquisition-using-python-chapman-hall-crc-the-python-
series-2nd-edition-chityala/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Python Packages Chapman Hall CRC The Python Series 1st


Edition Tomas Beuzen

https://ebookmeta.com/product/python-packages-chapman-hall-crc-the-
python-series-1st-edition-tomas-beuzen/

ebookmeta.com

Python Packages Chapman Hall CRC The Python Series 1st


Edition Beuzen Tomas Timbers Tiffany

https://ebookmeta.com/product/python-packages-chapman-hall-crc-the-
python-series-1st-edition-beuzen-tomas-timbers-tiffany/

ebookmeta.com

Javascript for R Chapman Hall CRC The R Series 1st Edition


John Coene

https://ebookmeta.com/product/javascript-for-r-chapman-hall-crc-the-r-
series-1st-edition-john-coene/

ebookmeta.com

Dungeon in My Closet 2 A Harem Portal Fantasy 1st Edition


Logan Jacobs

https://ebookmeta.com/product/dungeon-in-my-closet-2-a-harem-portal-
fantasy-1st-edition-logan-jacobs/

ebookmeta.com
2021 International Building Code® Illustrated Handbook 1st
Edition Douglas W. Thornburg

https://ebookmeta.com/product/2021-international-building-code-
illustrated-handbook-1st-edition-douglas-w-thornburg/

ebookmeta.com

American Gold Digger: Marriage, Money, and the Law from


the Ziegfeld Follies to Anna Nicole Smith (Gender and
American Culture) Donovan
https://ebookmeta.com/product/american-gold-digger-marriage-money-and-
the-law-from-the-ziegfeld-follies-to-anna-nicole-smith-gender-and-
american-culture-donovan/
ebookmeta.com

Politics of Social Psychology 1st Edition Jarret T


Crawford Lee Jussim Editors

https://ebookmeta.com/product/politics-of-social-psychology-1st-
edition-jarret-t-crawford-lee-jussim-editors/

ebookmeta.com

The Amulet Society 1st Edition S.H. Steele.

https://ebookmeta.com/product/the-amulet-society-1st-edition-s-h-
steele/

ebookmeta.com

The World Order A Study in the Hegemony of Parasitism New


World Order 2nd Edition Eustace Mullins

https://ebookmeta.com/product/the-world-order-a-study-in-the-hegemony-
of-parasitism-new-world-order-2nd-edition-eustace-mullins/

ebookmeta.com
Kingdoms of Memory Empires of Ink The Veda and the
Regional Print Cultures of Colonial India 1st Edition
Cezary Galewicz
https://ebookmeta.com/product/kingdoms-of-memory-empires-of-ink-the-
veda-and-the-regional-print-cultures-of-colonial-india-1st-edition-
cezary-galewicz/
ebookmeta.com
Biomedical Science/Computer Science

Pudipeddi
Chityala
Chapman & Hall/CRC
Mathematical and Computational Imaging Sciences

Image Processing and Acquisition using Python


“This is a well-suited companion for any introductory course on image
processing. The concepts are clearly explained and well illustrated
through examples and Python code provided to the reader. The code
Image Processing
and Acquisition
allows the reader to readily apply the concepts to any images at hand,
which significantly simplifies the understanding of image processing
concepts. This is what makes this book great. I recommend this book

using Python
to researchers and students who are looking for an introduction to
image processing and acquisition.”
—Martin Styner, University of North Carolina at Chapel Hill
“Image Processing and Acquisition using Python is unique in that it
offers an in-depth understanding of the foundation of mathematics
associated with image analysis. Ravi Chityala and Sridevi Pudipeddi
provide accessible examples with sample codes to show how the
theories are applied. … All the topics are explained clearly and easily.
I would highly recommend this book and cannot praise enough the
logical and well-written format that it is presented in.”
—Augusto Gil Pascoal, University of Lisbon
Image Processing and Acquisition using Python provides you with
a sound foundation in both image acquisition and image processing,
uniquely integrating these topics. By improving your knowledge of
image acquisition techniques and corresponding image processing,
the book will help you perform experiments more effectively and cost
efficiently as well as analyze and measure more accurately. Long
Ravishankar Chityala
recognized as one of the easiest languages for non-programmers to
learn, Python is used in a variety of practical examples. Sridevi Pudipeddi
K19004

K19004_Cover.indd 1 12/18/13 8:37 AM


Image Processing
and Acquisition
using Python

K19004_FM.indd 1 1/13/14 10:25 AM


Chapman & Hall/CRC
Mathematical and Computational
Imaging Sciences

Series Editors
Chandrajit Bajaj Guillermo Sapiro
Center for Computational Visualization Department of Electrical
The University of Texas at Austin and Computer Engineering
Duke University

Aims and Scope


This series aims to capture new developments and summarize what is
known over the whole spectrum of mathematical and computational imaging
sciences. It seeks to encourage the integration of mathematical, statistical and
computational methods in image acquisition and processing by publishing a
broad range of textbooks, reference works and handbooks. The titles included
in the series are meant to appeal to students, researchers and professionals
in the mathematical, statistical and computational sciences, application areas,
as well as interdisciplinary researchers involved in the field. The inclusion of
concrete examples and applications, and programming code and examples, is
highly encouraged.

Published Titles
Image Processing for Cinema
by Marcelo Bertalmío
Image Processing and Acquisition using Python
by Ravishankar Chityala and Sridevi Pudipeddi
Statistical and Computational Methods in Brain Image Analysis
by Moo K. Chung
Rough Fuzzy Image Analysis: Foundations and Methodologies
by Sankar K. Pal and James F. Peters
Theoretical Foundations of Digital Imaging Using MATLAB®
by Leonid P. Yaroslavsky

Proposals for the series should be submitted to the series editors above or directly to:
CRC Press, Taylor & Francis Group
3 Park Square, Milton Park, Abingdon, OX14 4RN, UK

K19004_FM.indd 2 1/13/14 10:25 AM


Chapman & Hall/CRC
Mathematical and Computational Imaging Sciences

Image Processing
and Acquisition
using Python

Ravishankar Chityala
University of Minnesota at Minneapolis
USA

Sridevi Pudipeddi
SriRav Scientific Solutions
Minneapolis, Minnesota, USA

K19004_FM.indd 3 1/13/14 10:25 AM


MATLAB® is a trademark of The MathWorks, Inc. and is used with permission. The MathWorks does not warrant
the accuracy of the text or exercises in this book. This book’s use or discussion of MATLAB® software or related
products does not constitute endorsement or sponsorship by The MathWorks of a particular pedagogical approach
or particular use of the MATLAB® software.

CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742

© 2014 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: 20131206

International Standard Book Number-13: 978-1-4665-8376-4 (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, includ-
ing photocopying, microfilming, and recording, or in any information storage or retrieval system, without written
permission from the publishers.

For permission to photocopy or use material electronically from this work, please access www.copyright.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 provides licenses and registration for a variety
of users. For organizations that have been granted a photocopy 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
To our parents and siblings
Contents

List of Figures xvii

List of Tables xxiii

Foreword xxv

Preface xxvii

Introduction xxxi

About the Authors xxxiii

List of Symbols and Abbreviations xxxv

I Introduction to Images and Computing using


Python 1

1 Introduction to Python 3
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 What is Python? . . . . . . . . . . . . . . . . . . . . . 4
1.3 Python Environments . . . . . . . . . . . . . . . . . . 5
1.3.1 Python Interpreter . . . . . . . . . . . . . . . . 6
1.3.2 Enthought Python Distribution (EPD) . . . . . 6
1.3.3 PythonXY . . . . . . . . . . . . . . . . . . . . . 7
1.4 Running a Python Program . . . . . . . . . . . . . . . 8
1.5 Basic Python Statements and Data Types . . . . . . . 8
1.5.1 Data Structures . . . . . . . . . . . . . . . . . . 11
1.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 19

vii
viii Contents

1.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 20

2 Computing using Python Modules 23


2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 23
2.2 Python Modules . . . . . . . . . . . . . . . . . . . . . 23
2.2.1 Creating Modules . . . . . . . . . . . . . . . . . 24
2.2.2 Loading Modules . . . . . . . . . . . . . . . . . 24
2.3 Numpy . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.3.1 Numpy Array or Matrices? . . . . . . . . . . . . 30
2.4 Scipy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.5 Matplotlib . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.6 Python Imaging Library . . . . . . . . . . . . . . . . . 33
2.7 Scikits . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.8 Python OpenCV Module . . . . . . . . . . . . . . . . 34
2.9 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 34
2.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 35

3 Image and its Properties 37


3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 37
3.2 Image and its Properties . . . . . . . . . . . . . . . . . 38
3.2.1 Bit Depth . . . . . . . . . . . . . . . . . . . . . 38
3.2.2 Pixel and Voxel . . . . . . . . . . . . . . . . . . 39
3.2.3 Image Histogram . . . . . . . . . . . . . . . . . 41
3.2.4 Window and Level . . . . . . . . . . . . . . . . 42
3.2.5 Connectivity: 4 or 8 Pixels . . . . . . . . . . . . 43
3.3 Image Types . . . . . . . . . . . . . . . . . . . . . . . 44
3.3.1 JPEG . . . . . . . . . . . . . . . . . . . . . . . 44
3.3.2 TIFF . . . . . . . . . . . . . . . . . . . . . . . . 44
3.3.3 DICOM . . . . . . . . . . . . . . . . . . . . . . 45
3.4 Data Structures for Image Analysis . . . . . . . . . . . 49
3.4.1 Reading Images . . . . . . . . . . . . . . . . . . 49
3.4.2 Displaying Images . . . . . . . . . . . . . . . . . 50
3.4.3 Writing Images . . . . . . . . . . . . . . . . . . 50
Contents ix

3.5 Programming Paradigm . . . . . . . . . . . . . . . . . 51


3.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 53

II Image Processing using Python 55

4 Spatial Filters 57
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 57
4.2 Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . 58
4.2.1 Mean Filter . . . . . . . . . . . . . . . . . . . . 60
4.2.2 Median Filter . . . . . . . . . . . . . . . . . . . 64
4.2.3 Max Filter . . . . . . . . . . . . . . . . . . . . . 66
4.2.4 Min Filter . . . . . . . . . . . . . . . . . . . . . 68
4.3 Edge Detection using Derivatives . . . . . . . . . . . . 69
4.3.1 First Derivative Filters . . . . . . . . . . . . . . 71
4.3.2 Second Derivative Filters . . . . . . . . . . . . . 79
4.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 85
4.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 86

5 Image Enhancement 89
5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 89
5.2 Pixel Transformation . . . . . . . . . . . . . . . . . . . 89
5.3 Image Inverse . . . . . . . . . . . . . . . . . . . . . . . 91
5.4 Power Law Transformation . . . . . . . . . . . . . . . 92
5.5 Log Transformation . . . . . . . . . . . . . . . . . . . 97
5.6 Histogram Equalization . . . . . . . . . . . . . . . . . 99
5.7 Contrast Stretching . . . . . . . . . . . . . . . . . . . 103
5.8 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 106
5.9 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 107

6 Fourier Transform 109


6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 109
6.2 Definition of Fourier Transform . . . . . . . . . . . . . 110
6.3 Two-Dimensional Fourier Transform . . . . . . . . . . 113
x Contents

6.3.1 Fast Fourier Transform using Python . . . . . . 115


6.4 Convolution . . . . . . . . . . . . . . . . . . . . . . . . 118
6.4.1 Convolution in Fourier Space . . . . . . . . . . 119
6.5 Filtering in Frequency Domain . . . . . . . . . . . . . 120
6.5.1 Ideal Lowpass Filter . . . . . . . . . . . . . . . 120
6.5.2 Butterworth Lowpass Filter . . . . . . . . . . . 123
6.5.3 Gaussian Lowpass Filter . . . . . . . . . . . . . 125
6.5.4 Ideal Highpass Filter . . . . . . . . . . . . . . . 127
6.5.5 Butterworth Highpass Filter . . . . . . . . . . . 130
6.5.6 Gaussian Highpass Filter . . . . . . . . . . . . . 132
6.5.7 Bandpass Filter . . . . . . . . . . . . . . . . . . 134
6.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 137
6.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 138

7 Segmentation 139
7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 139
7.2 Histogram Based Segmentation . . . . . . . . . . . . . 139
7.2.1 Otsu’s Method . . . . . . . . . . . . . . . . . . 141
7.2.2 Renyi Entropy . . . . . . . . . . . . . . . . . . . 144
7.2.3 Adaptive Thresholding . . . . . . . . . . . . . . 149
7.3 Region Based Segmentation . . . . . . . . . . . . . . . 151
7.3.1 Watershed Segmentation . . . . . . . . . . . . . 153
7.4 Segmentation Algorithm for Various Modalities . . . . 161
7.4.1 Segmentation of Computed Tomography Image 161
7.4.2 Segmentation of MRI Image . . . . . . . . . . . 161
7.4.3 Segmentation of Optical and Electron Micro-
scope Image . . . . . . . . . . . . . . . . . . . . 162
7.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 162
7.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 163

8 Morphological Operations 165


8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 165
8.2 History . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Contents xi

8.3 Dilation . . . . . . . . . . . . . . . . . . . . . . . . . . 166


8.4 Erosion . . . . . . . . . . . . . . . . . . . . . . . . . . 171
8.5 Grayscale Dilation and Erosion . . . . . . . . . . . . . 175
8.6 Opening and Closing . . . . . . . . . . . . . . . . . . . 176
8.7 Hit-or-Miss . . . . . . . . . . . . . . . . . . . . . . . . 179
8.8 Thickening and Thinning . . . . . . . . . . . . . . . . 184
8.8.1 Skeletonization . . . . . . . . . . . . . . . . . . 185
8.9 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 186
8.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 187

9 Image Measurements 189


9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 189
9.2 Labeling . . . . . . . . . . . . . . . . . . . . . . . . . . 189
9.3 Hough Transform . . . . . . . . . . . . . . . . . . . . . 194
9.3.1 Hough Line . . . . . . . . . . . . . . . . . . . . 194
9.3.2 Hough Circle . . . . . . . . . . . . . . . . . . . 197
9.4 Template Matching . . . . . . . . . . . . . . . . . . . . 201
9.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 205
9.6 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 205

III Image Acquisition 207

10 X-Ray and Computed Tomography 209


10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 209
10.2 History . . . . . . . . . . . . . . . . . . . . . . . . . . 209
10.3 X-Ray Generation . . . . . . . . . . . . . . . . . . . . 210
10.3.1 X-Ray Tube Construction . . . . . . . . . . . . 210
10.3.2 X-Ray Generation Process . . . . . . . . . . . . 212
10.4 Material Properties . . . . . . . . . . . . . . . . . . . . 216
10.4.1 Attenuation . . . . . . . . . . . . . . . . . . . . 216
10.4.2 Lambert Beer Law for Multiple Materials . . . 218
10.5 X-Ray Detection . . . . . . . . . . . . . . . . . . . . . 219
10.5.1 Image Intensifier . . . . . . . . . . . . . . . . . 220
10.5.2 Multiple-Field II . . . . . . . . . . . . . . . . . 221
xii Contents

10.5.3 Flat Panel Detector (FPD) . . . . . . . . . . . . 223


10.6 X-Ray Imaging Modes . . . . . . . . . . . . . . . . . . 224
10.6.1 Fluoroscopy . . . . . . . . . . . . . . . . . . . . 224
10.6.2 Angiography . . . . . . . . . . . . . . . . . . . . 224
10.7 Computed Tomography (CT) . . . . . . . . . . . . . . 226
10.7.1 Reconstruction . . . . . . . . . . . . . . . . . . 227
10.7.2 Parallel Beam CT . . . . . . . . . . . . . . . . . 227
10.7.3 Central Slice Theorem . . . . . . . . . . . . . . 228
10.7.4 Fan Beam CT . . . . . . . . . . . . . . . . . . . 232
10.7.5 Cone Beam CT . . . . . . . . . . . . . . . . . . 233
10.7.6 Micro-CT . . . . . . . . . . . . . . . . . . . . . 234
10.8 Hounsfield Unit (HU) . . . . . . . . . . . . . . . . . . 236
10.9 Artifacts . . . . . . . . . . . . . . . . . . . . . . . . . . 237
10.9.1 Geometric Misalignment Artifacts . . . . . . . . 238
10.9.2 Scatter . . . . . . . . . . . . . . . . . . . . . . . 238
10.9.3 Offset and Gain Correction . . . . . . . . . . . . 240
10.9.4 Beam Hardening . . . . . . . . . . . . . . . . . 241
10.9.5 Metal Artifacts . . . . . . . . . . . . . . . . . . 242
10.10 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 243
10.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 244

11 Magnetic Resonance Imaging 247


11.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 247
11.2 Laws Governing NMR and MRI . . . . . . . . . . . . 248
11.2.1 Faraday’s Law . . . . . . . . . . . . . . . . . . . 248
11.2.2 Larmor Frequency . . . . . . . . . . . . . . . . . 249
11.2.3 Bloch Equation . . . . . . . . . . . . . . . . . . 250
11.3 Material Properties . . . . . . . . . . . . . . . . . . . . 251
11.3.1 Gyromagnetic Ratio . . . . . . . . . . . . . . . 251
11.3.2 Proton Density . . . . . . . . . . . . . . . . . . 252
11.3.3 T1 and T2 Relaxation Times . . . . . . . . . . . 253
11.4 NMR Signal Detection . . . . . . . . . . . . . . . . . . 255
11.5 MRI Signal Detection or MRI Imaging . . . . . . . . . 256
Contents xiii

11.5.1 Slice Selection . . . . . . . . . . . . . . . . . . . 258


11.5.2 Phase Encoding . . . . . . . . . . . . . . . . . . 258
11.5.3 Frequency Encoding . . . . . . . . . . . . . . . 259
11.6 MRI Construction . . . . . . . . . . . . . . . . . . . . 259
11.6.1 Main Magnet . . . . . . . . . . . . . . . . . . . 259
11.6.2 Gradient Magnet . . . . . . . . . . . . . . . . . 260
11.6.3 RF Coils . . . . . . . . . . . . . . . . . . . . . . 261
11.6.4 K-Space Imaging . . . . . . . . . . . . . . . . . 262
11.7 T1 , T2 and Proton Density Image . . . . . . . . . . . . 263
11.8 MRI Modes or Pulse Sequence . . . . . . . . . . . . . 265
11.8.1 Spin Echo Imaging . . . . . . . . . . . . . . . . 265
11.8.2 Inversion Recovery . . . . . . . . . . . . . . . . 266
11.8.3 Gradient Echo Imaging . . . . . . . . . . . . . . 267
11.9 MRI Artifacts . . . . . . . . . . . . . . . . . . . . . . . 268
11.9.1 Motion Artifact . . . . . . . . . . . . . . . . . . 269
11.9.2 Metal Artifact . . . . . . . . . . . . . . . . . . . 271
11.9.3 Inhomogeneity Artifact . . . . . . . . . . . . . . 271
11.9.4 Partial Volume Artifact . . . . . . . . . . . . . . 272
11.10 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 272
11.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 273

12 Light Microscopes 275


12.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 275
12.2 Physical Principles . . . . . . . . . . . . . . . . . . . . 276
12.2.1 Geometric Optics . . . . . . . . . . . . . . . . . 276
12.2.2 Numerical Aperture . . . . . . . . . . . . . . . . 277
12.2.3 Diffraction Limit . . . . . . . . . . . . . . . . . 278
12.2.4 Objective Lens . . . . . . . . . . . . . . . . . . 280
12.2.5 Point Spread Function (PSF) . . . . . . . . . . 281
12.2.6 Wide-Field Microscopes . . . . . . . . . . . . . 282
12.3 Construction of a Wide-Field Microscope . . . . . . . 282
12.4 Epi-Illumination . . . . . . . . . . . . . . . . . . . . . 284
12.5 Fluorescence Microscope . . . . . . . . . . . . . . . . . 284
xiv Contents

12.5.1 Theory . . . . . . . . . . . . . . . . . . . . . . . 284


12.5.2 Properties of Fluorochromes . . . . . . . . . . . 285
12.5.3 Filters . . . . . . . . . . . . . . . . . . . . . . . 287
12.6 Confocal Microscopes . . . . . . . . . . . . . . . . . . 288
12.7 Nipkow Disk Microscopes . . . . . . . . . . . . . . . . 289
12.8 Confocal or Wide-Field? . . . . . . . . . . . . . . . . . 291
12.9 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 292
12.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 293

13 Electron Microscopes 295


13.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 295
13.2 Physical Principles . . . . . . . . . . . . . . . . . . . . 296
13.2.1 Electron Beam . . . . . . . . . . . . . . . . . . 297
13.2.2 Interaction of Electron with Matter . . . . . . . 298
13.2.3 Interaction of Electrons in TEM . . . . . . . . . 299
13.2.4 Interaction of Electrons in SEM . . . . . . . . . 300
13.3 Construction of EM . . . . . . . . . . . . . . . . . . . 301
13.3.1 Electron Gun . . . . . . . . . . . . . . . . . . . 301
13.3.2 Electromagnetic Lens . . . . . . . . . . . . . . . 303
13.3.3 Detectors . . . . . . . . . . . . . . . . . . . . . . 304
13.4 Specimen Preparations . . . . . . . . . . . . . . . . . . 306
13.5 Construction of TEM . . . . . . . . . . . . . . . . . . 307
13.6 Construction of SEM . . . . . . . . . . . . . . . . . . . 308
13.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . 309
13.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . 311

A Installing Python Distributions 313


A.1 Windows . . . . . . . . . . . . . . . . . . . . . . . . . 313
A.1.1 PythonXY . . . . . . . . . . . . . . . . . . . . . 313
A.1.2 Enthought Python Distribution . . . . . . . . . 316
A.1.3 Updating or Installing New Modules . . . . . . 316
A.2 Mac or Linux . . . . . . . . . . . . . . . . . . . . . . . 318
A.2.1 Enthought Python Distribution . . . . . . . . . 318
Other documents randomly have
different content
The Project Gutenberg eBook of
Romancero gitano
This ebook is for the use of anyone anywhere in the
United States and most other parts of the world at no
cost and with almost no restrictions whatsoever. You
may copy it, give it away or re-use it under the terms
of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not
located in the United States, you will have to check
the laws of the country where you are located before
using this eBook.

Title: Romancero gitano

Author: Federico García Lorca

Release date: January 9, 2024 [eBook #72665]

Language: Spanish

Original publication: Madrid: Revista de Occidente,


1928

Credits: Ramón Pajares Box (This file was produced


from images generously made available by
Biblioteca Digital Hispánica/Biblioteca
Nacional de España.)

*** START OF THE PROJECT GUTENBERG EBOOK


ROMANCERO GITANO ***
Índice

Nota de transcripción

Los errores de imprenta han sido corregidos.


La ortografía y puntuación originales han sido conservadas, con
estas tres excepciones:
p. 95: Aladren → Aladrén (Para Emilio Aladrén.)
p. 111: horzas → orzas (y las orzas de moneda.)
p. 141: llemas → yemas (y en las yemas de tus dedos.)

Las páginas en blanco han sido eliminadas.


PRIMER ROMANCERO GITANO
(1924-1927)
PRIMER ROMANCERO
GITANO
1924-1927

por
FEDERICO GARCÍA LORCA

Re v i s t a d e O cc i d e n t e
Madrid
COPYRIGHT BY
REVISTA DE OCCIDENTE
MADRID, 1928

Tipografía Nacional. San Marcos, 4, Madrid.


1
ROMANCE DE LA LUNA, LUNA

A Conchita García Lorca.


ROMANCE DE LA LUNA, LUNA

La luna vino a la fragua


con su polisón de nardos.
El niño la mira mira.
El niño la está mirando.
En el aire conmovido
mueve la luna sus brazos
y enseña, lúbrica y pura,
sus senos de duro estaño.
Huye luna, luna, luna.
Si vinieran los gitanos,
harían con tu corazón
collares y anillos blancos.
Niño, déjame que baile.
Cuando vengan los gitanos,
te encontrarán sobre el yunque
con los ojillos cerrados.
Huye luna, luna, luna,
que ya siento sus caballos.
Niño, déjame, no pises
mi blancor almidonado.
El jinete se acercaba
tocando el tambor del llano.
Dentro de la fragua el niño,
tiene los ojos cerrados.
Por el olivar venían,
bronce y sueño, los gitanos.
Las cabezas levantadas
y los ojos entornados.

Cómo canta la zumaya,


¡ay cómo canta en el árbol!
Por el cielo va la luna
con un niño de la mano.

Dentro de la fragua lloran,


dando gritos, los gitanos.
El aire la vela, vela.
El aire la está velando.
2
PRECIOSA Y EL AIRE

A Dámaso Alonso.
PRECIOSA Y EL AIRE

Su luna de pergamino
Preciosa tocando viene,
por un anfibio sendero
de cristales y laureles.
El silencio sin estrellas,
huyendo del sonsonete,
cae donde el mar bate y canta
su noche llena de peces.
En los picos de la sierra
los carabineros duermen
guardando las blancas torres
donde viven los ingleses.
Y los gitanos del agua
levantan por distraerse,
glorietas de caracolas
y ramas de pino verde.

Su luna de pergamino
Preciosa tocando viene.
Al verla se ha levantado
el viento, que nunca duerme.
San Cristobalón desnudo,
lleno de lenguas celestes,
mira a la niña tocando
una dulce gaita ausente.

Niña, deja que levante


tu vestido para verte.
Abre en mis dedos antiguos
la rosa azul de tu vientre.

Preciosa tira el pandero


y corre sin detenerse.
El viento-hombrón la persigue
con una espada caliente.

Frunce su rumor el mar.


Los olivos palidecen.
Cantan las flautas de umbría
y el liso gong de la nieve.

¡Preciosa, corre, Preciosa,


que te coge el viento verde!
¡Preciosa, corre, Preciosa!
¡Míralo por dónde viene!
Sátiro de estrellas bajas
con sus lenguas relucientes.

Preciosa, llena de miedo,


entra en la casa que tiene
más arriba de los pinos,
el cónsul de los ingleses.

Asustados por los gritos


tres carabineros vienen,
sus negras capas ceñidas
y los gorros en las sienes.

El inglés da a la gitana
un vaso de tibia leche,
y una copa de ginebra
que Preciosa no se bebe.

Y mientras cuenta, llorando,


su aventura a aquella gente,
en las tejas de pizarra
el viento, furioso, muerde.
3
REYERTA

A Rafael Méndez.
REYERTA

En la mitad del barranco


las navajas de Albacete
bellas de sangre contraria,
relucen como los peces.
Una dura luz de naipe
recorta en el agrio verde,
caballos enfurecidos
y perfiles de jinetes.
En la copa de un olivo
lloran dos viejas mujeres.
El toro de la reyerta
se sube por las paredes.
Ángeles negros traían
pañuelos y agua de nieve.
Ángeles con grandes alas
de navajas de Albacete.
Juan Antonio el de Montilla
rueda muerto la pendiente,
su cuerpo lleno de lirios
y una granada en las sienes.
Ahora monta cruz de fuego
carretera de la muerte.

El juez, con guardia civil,


por los olivares viene.
Sangre resbalada gime
muda canción de serpiente.
Señores guardias civiles:
aquí pasó lo de siempre.
Han muerto cuatro romanos
y cinco cartagineses.

La tarde loca de higueras


y de rumores calientes,
cae desmayada en los muslos
heridos de los jinetes.
Y ángeles negros volaban
por el aire del poniente.
Ángeles de largas trenzas
y corazones de aceite.
4
ROMANCE SONÁMBULO

A Gloria Giner
y
A Fernando de los Ríos.
ROMANCE SONÁMBULO

Verde que te quiero verde.


Verde viento. Verdes ramas.
El barco sobre la mar
y el caballo en la montaña.
Con la sombra en la cintura,
ella sueña en su baranda
verde carne, pelo verde,
con ojos de fría plata.
Verde que te quiero verde.
Bajo la luna gitana,
las cosas la están mirando
y ella no puede mirarlas.

Verde que te quiero verde.


Grandes estrellas de escarcha,
vienen con el pez de sombra
que abre el camino del alba.
La higuera frota su viento
con la lija de sus ramas,
y el monte, gato garduño,
eriza sus pitas agrias.
¿Pero quién vendrá? ¿Y por dónde?...
Ella sigue en su baranda
verde carne, pelo verde,
soñando en la mar amarga.

Compadre, quiero cambiar,


mi caballo por su casa,
mi montura por su espejo,
mi cuchillo por su manta.
Compadre, vengo sangrando,
desde los puertos de Cabra.
Si yo pudiera, mocito,
este trato se cerraba.
Pero yo ya no soy yo,
ni mi casa es ya mi casa.
Compadre, quiero morir
decentemente en mi cama.
De acero, si puede ser,
con las sábanas de holanda.
¿No ves la herida que tengo
desde el pecho a la garganta?
Trescientas rosas morenas
lleva tu pechera blanca.
Tu sangre rezuma y huele
alrededor de tu faja.
Pero yo ya no soy yo.
Ni mi casa es ya mi casa.
Dejadme subir al menos
hasta las altas barandas,
¡dejadme subir!, dejadme
hasta las verdes barandas.
Barandales de la luna
por donde retumba el agua.

Ya suben los dos compadres


hacia las altas barandas.
Dejando un rastro de sangre.
Dejando un rastro de lágrimas.
Temblaban en los tejados
farolillos de hojalata.
Mil panderos de cristal,
herían la madrugada.

Verde que te quiero verde,


verde viento, verdes ramas.
Los dos compadres subieron.
El largo viento, dejaba
en la boca un raro gusto
de hiel, de menta y de albahaca.
¡Compadre! ¿Dónde está, dime?
¿Dónde está tu niña amarga?
¡Cuántas veces te esperó!
¡Cuántas veces te esperara
cara fresca, negro pelo,
en esta verde baranda!

Sobre el rostro del aljibe,


se mecía la gitana.
Verde carne, pelo verde,
con ojos de fría plata.
Un carámbano de luna,
la sostiene sobre el agua.
La noche se puso íntima
como una pequeña plaza.
Guardias civiles borrachos,
en la puerta golpeaban.
Verde que te quiero verde.
Verde viento. Verdes ramas.
El barco sobre la mar.
Y el caballo en la montaña.
5
LA MONJA GITANA

A José Moreno Villa.


LA MONJA GITANA

Silencio de cal y mirto.


Malvas en las hierbas finas.
La monja borda alhelíes
sobre una tela pajiza.
Vuelan en la araña gris,
siete pájaros del prisma.
La iglesia gruñe a lo lejos
como un oso panza arriba.
¡Qué bien borda! ¡Con qué gracia!
Sobre la tela pajiza,
ella quisiera bordar
flores de su fantasía.
¡Qué girasol! ¡Qué magnolia
de lentejuelas y cintas!
¡Qué azafranes y qué lunas,
en el mantel de la misa!
Cinco toronjas se endulzan
en la cercana cocina.
Las cinco llagas de Cristo
cortadas en Almería.
Por los ojos de la monja
galopan dos caballistas.
Un rumor último y sordo
le despega la camisa,
y al mirar nubes y montes
en las yertas lejanías,
se quiebra su corazón
de azúcar y yerbaluisa.
¡Oh!, qué llanura empinada
con veinte soles arriba.
¡Qué ríos puestos de pie
vislumbra su fantasía!
Pero sigue con sus flores,
mientras que de pie, en la brisa,
la luz juega el ajedrez
alto de la celosía.
6
LA CASADA INFIEL

A Lydia Cabrera y a su negrita.

You might also like