Fundamentals of Digital Image Processing A Practical Approach With Examples in Matlab 1st Edition Breckon Download
Fundamentals of Digital Image Processing A Practical Approach With Examples in Matlab 1st Edition Breckon Download
https://ebookname.com/product/fundamentals-of-digital-image-
processing-a-practical-approach-with-examples-in-matlab-1st-
edition-breckon/
https://ebookname.com/product/digital-signal-and-image-
processing-using-matlab-volume-1-fundamentals-2nd-edition-gerard-
blanchet/
https://ebookname.com/product/digital-image-processing-using-
matlab-2nd-edition-edition-rafael-c-gonzalez/
https://ebookname.com/product/practical-image-and-video-
processing-using-matlab-1st-edition-oge-marques/
https://ebookname.com/product/absolute-beginner-s-guide-to-
ebay-2nd-edition-michael-miller/
Algebraic Homotopy 1st Edition Hans Joachim Baues
https://ebookname.com/product/algebraic-homotopy-1st-edition-
hans-joachim-baues/
https://ebookname.com/product/essential-guide-to-qualitative-
methods-in-organizational-research-1st-edition-professor-
catherine-cassell/
https://ebookname.com/product/cinema-the-archaeology-of-film-and-
the-memory-of-a-century-talking-images-series-jean-luc-godard/
https://ebookname.com/product/china-xinjiang-and-central-asia-
history-transition-and-crossborder-interaction-into-the-21st-
century-1st-edition-colin-mackerras/
https://ebookname.com/product/classic-tales-of-rupert-alfred-
bestall/
Sleep Deprivation Stimulant Medications and Cognition
1st Edition Nancy J. Wesensten
https://ebookname.com/product/sleep-deprivation-stimulant-
medications-and-cognition-1st-edition-nancy-j-wesensten/
Fundamentals of Digital
Image Processing
A Practical Approach
with Examples in Matlab
Chris Solomon
School of Physical Sciences, University of Kent, Canterbury, UK
Toby Breckon
School of Engineering, Cranfield University, Bedfordshire, UK
Fundamentals of Digital
Image Processing
Fundamentals of Digital
Image Processing
A Practical Approach
with Examples in Matlab
Chris Solomon
School of Physical Sciences, University of Kent, Canterbury, UK
Toby Breckon
School of Engineering, Cranfield University, Bedfordshire, UK
This edition first published 2011, Ó 2011 by John Wiley & Sons, Ltd
Wiley-Blackwell is an imprint of John Wiley & Sons, formed by the merger of Wiley’s global Scientific,
Technical and Medical business with Blackwell Publishing.
Registered office: John Wiley & Sons Ltd, The Atrium, Southern Gate, Chichester,
West Sussex, PO19 8SQ, UK
Editorial Offices:
9600 Garsington Road, Oxford, OX4 2DQ, UK
111 River Street, Hoboken, NJ 07030-5774, USA
For details of our global editorial offices, for customer services and for information about how to
apply for permission to reuse the copyright material in this book please see our website at
www.wiley.com/wiley-blackwell
The right of the author to be identified as the author of this work has been asserted in accordance with
the Copyright, Designs and Patents Act 1988.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or
transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise,
except as permitted by the UK Copyright, Designs and Patents Act 1988, without the prior permission
of the publisher.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in
print may not be available in electronic books.
Designations used by companies to distinguish their products are often claimed as trademarks. All brand
names and product names used in this book are trade names, service marks, trademarks or registered
trademarks of their respective owners. The publisher is not associated with any product or vendor mentioned
in this book. This publication is designed to provide accurate and authoritative information in regard to
the subject matter covered. It is sold on the understanding that the publisher is not engaged in rendering
professional services. If professional advice or other expert assistance is required, the services of a
competent professional should be sought.
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.
Library of Congress Cataloguing-in-Publication Data
Solomon, Chris and Breckon, Toby
Fundamentals of digital image processing : a practical approach with examples in Matlab / Chris Solomon and
Toby Breckon
p. cm.
Includes index.
Summary: Fundamentals of Digital Image Processing is an introductory text on the science of image processing
and employs the Matlab programming language to illustrate some of the elementary, key concepts in modern
image processing and pattern recognition drawing on specific examples from within science, medicine and
electronics— Provided by publisher.
ISBN 978-0-470-84472-4 (hardback) – ISBN 978-0-470-84473-1 (pbk.)
1. Image processing–Digital techniques. 2. Matlab. I. Breckon, Toby. II. Title.
TA1637.S65154 2010
621.36’7—dc22
2010025730
This book is published in the following electronic formats: eBook 9780470689783; Wiley Online Library
9780470689776
A catalogue record for this book is available from the British Library.
Set in 10/12.5 pt Minion by Thomson Digital, Noida, India
1 2011
Contents
Preface xi
1 Representation 1
1.1 What is an image? 1
1.1.1 Image layout 1
1.1.2 Image colour 2
1.2 Resolution and quantization 3
1.2.1 Bit-plane splicing 4
1.3 Image formats 5
1.3.1 Image data types 6
1.3.2 Image compression 7
1.4 Colour spaces 9
1.4.1 RGB 10
1.4.1.1 RGB to grey-scale image conversion 11
1.4.2 Perceptual colour space 12
1.5 Images in Matlab 14
1.5.1 Reading, writing and querying images 14
1.5.2 Basic display of images 15
1.5.3 Accessing pixel values 16
1.5.4 Converting image types 17
Exercises 18
2 Formation 21
2.1 How is an image formed? 21
2.2 The mathematics of image formation 22
2.2.1 Introduction 22
2.2.2 Linear imaging systems 23
2.2.3 Linear superposition integral 24
2.2.4 The Dirac delta or impulse function 25
2.2.5 The point-spread function 28
vi CONTENTS
3 Pixels 49
3.1 What is a pixel? 49
3.2 Operations upon pixels 50
3.2.1 Arithmetic operations on images 51
3.2.1.1 Image addition and subtraction 51
3.2.1.2 Multiplication and division 53
3.2.2 Logical operations on images 54
3.2.3 Thresholding 55
3.3 Point-based operations on images 57
3.3.1 Logarithmic transform 57
3.3.2 Exponential transform 59
3.3.3 Power-law (gamma) transform 61
3.3.3.1 Application: gamma correction 62
3.4 Pixel distributions: histograms 63
3.4.1 Histograms for threshold selection 65
3.4.2 Adaptive thresholding 66
3.4.3 Contrast stretching 67
3.4.4 Histogram equalization 69
3.4.4.1 Histogram equalization theory 69
3.4.4.2 Histogram equalization theory: discrete case 70
3.4.4.3 Histogram equalization in practice 71
3.4.5 Histogram matching 73
3.4.5.1 Histogram-matching theory 73
3.4.5.2 Histogram-matching theory: discrete case 74
3.4.5.3 Histogram matching in practice 75
3.4.6 Adaptive histogram equalization 76
3.4.7 Histogram operations on colour images 79
Exercises 81
CONTENTS vii
4 Enhancement 85
4.1 Why perform enhancement? 85
4.1.1 Enhancement via image filtering 85
4.2 Pixel neighbourhoods 86
4.3 Filter kernels and the mechanics of linear filtering 87
4.3.1 Nonlinear spatial filtering 90
4.4 Filtering for noise removal 90
4.4.1 Mean filtering 91
4.4.2 Median filtering 92
4.4.3 Rank filtering 94
4.4.4 Gaussian filtering 95
4.5 Filtering for edge detection 97
4.5.1 Derivative filters for discontinuities 97
4.5.2 First-order edge detection 99
4.5.2.1 Linearly separable filtering 101
4.5.3 Second-order edge detection 102
4.5.3.1 Laplacian edge detection 102
4.5.3.2 Laplacian of Gaussian 103
4.5.3.3 Zero-crossing detector 104
4.6 Edge enhancement 105
4.6.1 Laplacian edge sharpening 105
4.6.2 The unsharp mask filter 107
Exercises 109
7 Geometry 169
7.1 The description of shape 169
7.2 Shape-preserving transformations 170
7.3 Shape transformation and homogeneous coordinates 171
7.4 The general 2-D affine transformation 173
7.5 Affine transformation in homogeneous coordinates 174
7.6 The Procrustes transformation 175
7.7 Procrustes alignment 176
7.8 The projective transform 180
7.9 Nonlinear transformations 184
7.10 Warping: the spatial transformation of an image 186
7.11 Overdetermined spatial transformations 189
7.12 The piecewise warp 191
7.13 The piecewise affine warp 191
7.14 Warping: forward and reverse mapping 194
9 Features 235
9.1 Landmarks and shape vectors 235
9.2 Single-parameter shape descriptors 237
9.3 Signatures and the radial Fourier expansion 239
9.4 Statistical moments as region descriptors 243
9.5 Texture features based on statistical measures 246
9.6 Principal component analysis 247
9.7 Principal component analysis: an illustrative example 247
9.8 Theory of principal component analysis: version 1 250
9.9 Theory of principal component analysis: version 2 251
9.10 Principal axes and principal components 253
9.11 Summary of properties of principal component analysis 253
9.12 Dimensionality reduction: the purpose of principal
component analysis 256
9.13 Principal components analysis on an ensemble of digital images 257
9.14 Representation of out-of-sample examples using principal
component analysis 257
9.15 Key example: eigenfaces and the human face 259
11 Classification 291
11.1 The purpose of automated classification 291
11.2 Supervised and unsupervised classification 292
11.3 Classification: a simple example 292
11.4 Design of classification systems 294
11.5 Simple classifiers: prototypes and minimum distance
criteria 296
11.6 Linear discriminant functions 297
11.7 Linear discriminant functions in N dimensions 301
11.8 Extension of the minimum distance classifier and the
Mahalanobis distance 302
11.9 Bayesian classification: definitions 303
11.10 The Bayes decision rule 304
11.11 The multivariate normal density 306
11.12 Bayesian classifiers for multivariate normal distributions 307
11.12.1 The Fisher linear discriminant 310
11.12.2 Risk and cost functions 311
11.13 Ensemble classifiers 312
11.13.1 Combining weak classifiers: the AdaBoost method 313
11.14 Unsupervised learning: k-means clustering 313
Index 319
Preface
Aims
What then are the specific aims of this book ? Two of the principal aims are –
. To introduce the reader to some of the key concepts and techniques of modern image
processing.
. To provide a framework within which these concepts and techniques can be understood
by a series of examples, exercises and computer experiments.
xii PREFACE
These are, perhaps, aims which one might reasonably expect from any book on a technical
subject. However, we have one further aim namely to provide the reader with the fastest,
most direct route to acquiring a real hands-on understanding of image processing. We hope
this book will give you a real fast-start in the field.
Assumptions
We make no assumptions about the reader’s mathematical background beyond that
expected at the undergraduate level in the technical sciences – ie reasonable competence
in calculus, matrix algebra and basic statistics.
What is Matlab?
Matlab is a programming language with an associated set of specialist software toolboxes.
It is an industry standard in scientific computing and used worldwide in the scientific,
technical, industrial and educational sectors. Matlab is a commercial product and
information on licences and their cost can be obtained direct by enquiry at the
web-site www.mathworks.com. Many Universities all over the world provide site licenses
for their students.
Practical issues
To carry out the vast majority of the examples and exercises in the book, the reader will need
access to a current licence for Matlab and the Image Processing Toolbox only.
image-based automatic threat detection for the winning Stellar Team system in the UK
MoD Grand Challenge. He is a Chartered Engineer (CEng) and an Accredited Imaging
Scientist (AIS) as an Associate of the Royal Photographic Society (ARPS).
Thanks
The authors would like to thank the following people and organisations for their various
support and assistance in the production of this book: the authors families and friends for
their support and (frequent) understanding, Professor Chris Dainty (National University of
Ireland), Dr. Stuart Gibson (University of Kent), Dr. Timothy Lukins (University of
Edinburgh), The University of Kent, Cranfield University, VisionMetric Ltd and Wiley-
Blackwell Publishers.
There is an associated website which forms a vital supplement to this text. It is:
www.fundipbook.com
The material on the site is mostly organised by chapter number and this contains –
EXERCISES: intended to consolidate and highlight concepts discussed in the text. Some of
these exercises are numerical/conceptual, others are based on Matlab.
Matlab CODE: The Matlab code to all the examples in the book as well as the code used to
create many of the figures are available in the Matlab code section.
IMAGE DATABASE: The Matlab software allows direct access and use to a number of
images as an integral part of the software. Many of these are used in the examples presented
in the text.
We also offer a modest repository of images captured and compiled by the authors which
the reader may freely download and work with. Please note that some of the example Matlab
code contained on the website and presented in the text makes use of these images. You will
therefore need to download these images to run some of the Matlab code shown.
We strongly encourage you to make use of the website and the materials on it. It is a vital
link to making your exploration of the subject both practical and more in-depth. Used
properly, it will help you to get much more from this book.
1
Representation
In this chapter we discuss the representation of images, covering basic notation and
information about images together with a discussion of standard image types and image
formats. We end with a practical section, introducing Matlab’s facilities for reading, writing,
querying, converting and displaying images of different image types and formats.
The two-dimensional (2-D) discrete, digital image Iðm; nÞ represents the response of some
sensor (or simply a value of some interest) at a series of fixed positions
(m ¼ 1; 2; . . . ; M; n ¼ 1; 2; . . . ; N) in 2-D Cartesian coordinates and is derived from the
2-D continuous spatial signal Iðx; yÞ through a sampling process frequently referred to as
discretization. Discretization occurs naturally with certain types of imaging sensor (such as
CCD cameras) and basically effects a local averaging of the continuous signal over some
small (typically square) region in the receiving domain.
The indices m and n respectively designate the rows and columns of the image. The
individual picture elements or pixels of the image are thus referred to by their 2-D ðm; nÞ
index. Following the Matlab convention, Iðm; nÞ denotes the response of the pixel
located at the mth row and nth column starting from a top-left image origin (see
Figure 1.1). In other imaging systems, a column–row convention may be used and the
image origin in use may also vary.
Although the images we consider in this book will be discrete, it is often theoretically
convenient to treat an image as a continuous spatial signal: Iðx; yÞ. In particular, this
sometimes allows us to make more natural use of the powerful techniques of integral and
differential calculus to understand properties of images and to effectively manipulate and
process them. Mathematical analysis of discrete images generally leads to a linear algebraic
formulation which is better in some instances.
The individual pixel values in most images do actually correspond to some physical
response in real 2-D space (e.g. the optical intensity received at the image plane of a camera
or the ultrasound intensity at a transceiver). However, we are also free to consider images in
abstract spaces where the coordinates correspond to something other than physical space
and we may also extend the notion of an image to three or more dimensions. For example,
medical imaging applications sometimes consider full three-dimensional (3-D) recon-
struction of internal organs and a time sequence of such images (such as a beating heart) can
be treated (if we wish) as a single four-dimensional (4-D) image in which three coordinates
are spatial and the other corresponds to time. When we consider 3-D imaging we are often
discussing spatial volumes represented by the image. In this instance, such 3-D pixels are
denoted as voxels (volumetric pixels) representing the smallest spatial location in the 3-D
volume as opposed to the conventional 2-D image.
Throughout this book we will usually consider 2-D digital images, but much of our
discussion will be relevant to images in higher dimensions.
An image contains one or more colour channels that define the intensity or colour at a
particular pixel location Iðm; nÞ.
In the simplest case, each pixel location only contains a single numerical value
representing the signal level at that point in the image. The conversion from this set of
numbers to an actual (displayed) image is achieved through a colour map. A colour map
assigns a specific shade of colour to each numerical level in the image to give a visual
representation of the data. The most common colour map is the greyscale, which assigns
all shades of grey from black (zero) to white (maximum) according to the signal level. The
1.2 RESOLUTION AND QUANTIZATION 3
Figure 1.2 Example of grayscale (left) and false colour (right) image display (See colour plate section
for colour version)
greyscale is particularly well suited to intensity images, namely images which express only
the intensity of the signal as a single value at each point in the region.
In certain instances, it can be better to display intensity images using a false-colour map.
One of the main motives behind the use of false-colour display rests on the fact that the
human visual system is only sensitive to approximately 40 shades of grey in the range from
black to white, whereas our sensitivity to colour is much finer. False colour can also serve to
accentuate or delineate certain features or structures, making them easier to identify for the
human observer. This approach is often taken in medical and astronomical images.
Figure 1.2 shows an astronomical intensity image displayed using both greyscale and a
particular false-colour map. In this example the jet colour map (as defined in Matlab) has
been used to highlight the structure and finer detail of the image to the human viewer using a
linear colour scale ranging from dark blue (low intensity values) to dark red (high intensity
values). The definition of colour maps, i.e. assigning colours to numerical values, can be
done in any way which the user finds meaningful or useful. Although the mapping between
the numerical intensity value and the colour or greyscale shade is typically linear, there are
situations in which a nonlinear mapping between them is more appropriate. Such nonlinear
mappings are discussed in Chapter 4.
In addition to greyscale images where we have a single numerical value at each
pixel location, we also have true colour images where the full spectrum of colours can
be represented as a triplet vector, typically the (R,G,B) components at each pixel
location. Here, the colour is represented as a linear combination of the basis colours or
values and the image may be considered as consisting of three 2-D planes. Other
representations of colour are also possible and used quite widely, such as the (H,S,V)
(hue, saturation and value (or intensity)). In this representation, the intensity V of the
colour is decoupled from the chromatic information, which is contained within the H
and S components (see Section 1.4.2).
The representational power (or size) of an image is defined by its resolution. The
resolution of an image source (e.g. a camera) can be specified in terms of three quantities:
. Spatial resolution The column (C) by row (R) dimensions of the image define the
number of pixels used to cover the visual space captured by the image. This relates to the
sampling of the image signal and is sometimes referred to as the pixel or digital
resolution of the image. It is commonly quoted as C R (e.g. 640 480, 800 600,
1024 768, etc.)
. Temporal resolution For a continuous capture system such as video, this is the number of
images captured in a given time period. It is commonly quoted in frames per second
(fps), where each individual image is referred to as a video frame (e.g. commonly
broadcast TV operates at 25 fps; 25–30 fps is suitable for most visual surveillance; higher
frame-rate cameras are available for specialist science/engineering capture).
. Bit resolution This defines the number of possible intensity/colour values that a pixel
may have and relates to the quantization of the image information. For instance a binary
image has just two colours (black or white), a grey-scale image commonly has 256
different grey levels ranging from black to white whilst for a colour image it depends on
the colour range in use. The bit resolution is commonly quoted as the number of binary
bits required for storage at a given quantization level, e.g. binary is 2 bit, grey-scale is 8 bit
and colour (most commonly) is 24 bit. The range of values a pixel may take is often
referred to as the dynamic range of an image.
It is important to recognize that the bit resolution of an image does not necessarily
correspond to the resolution of the originating imaging system. A common feature of many
cameras is automatic gain, in which the minimum and maximum responses over the image
field are sensed and this range is automatically divided into a convenient number of bits (i.e.
digitized into N levels). In such a case, the bit resolution of the image is typically less than
that which is, in principle, achievable by the device.
By contrast, the blind, unadjusted conversion of an analog signal into a given number of
bits, for instance 216 ¼ 65 536 discrete levels, does not, of course, imply that the true
resolution of the imaging device as a whole is actually 16 bits. This is because the overall level
of noise (i.e. random fluctuation) in the sensor and in the subsequent processing chain may
be of a magnitude which easily exceeds a single digital level. The sensitivity of an imaging
system is thus fundamentally determined by the noise, and this makes noise a key factor in
determining the number of quantization levels used for digitization. There is no point in
digitizing an image to a high number of bits if the level of noise present in the image sensor
does not warrant it.
The visual significance of individual pixel bits in an image can be assessed in a subjective but
useful manner by the technique of bit-plane splicing.
To illustrate the concept, imagine an 8-bit image which allows integer values from 0 to
255. This can be conceptually divided into eight separate image planes, each corresponding
1.3 IMAGE FORMATS 5
to the values of a given bit across all of the image pixels. The first bit plane comprises the first
and most significant bit of information (intensity ¼ 128), the second, the second most
significant bit (intensity ¼ 64) and so on. Displaying each of the bit planes in succession, we
may discern whether there is any visible structure in them.
In Figure 1.3, we show the bit planes of an 8-bit grey-scale image of a car tyre descending
from the most significant bit to the least significant bit. It is apparent that the two or three
least significant bits do not encode much useful visual information (it is, in fact, mostly
noise). The sequence of images on the right in Figure 1.3 shows the effect on the original
image of successively setting the bit planes to zero (from the first and most significant to the
least significant). In a similar fashion, we see that these last bits do not appear to encode any
visible structure. In this specific case, therefore, we may expect that retaining only the five
most significant bits will produce an image which is practically visually identical to the
original. Such analysis could lead us to a more efficient method of encoding the image using
fewer bits – a method of image compression. We will discuss this next as part of our
examination of image storage formats.
compactly), transmit them over networks and recognize bodies of numerical data as
corresponding to images. This has led to the development of standard digital image
formats. In simple terms, the image formats comprise a file header (containing informa-
tion on how exactly the image data is stored) and the actual numeric pixel values
themselves. There are a large number of recognized image formats now existing, dating
back over more than 30 years of digital image storage. Some of the most common 2-D
image formats are listed in Table 1.1. The concepts of lossy and lossless compression are
detailed in Section 1.3.2.
As suggested by the properties listed in Table 1.1, different image formats are generally
suitable for different applications. GIF images are a very basic image storage format limited
to only 256 grey levels or colours, with the latter defined via a colour map in the file header as
discussed previously. By contrast, the commonplace JPEG format is capable of storing up to
a 24-bit RGB colour image, and up to 36 bits for medical/scientific imaging applications,
and is most widely used for consumer-level imaging such as digital cameras. Other common
formats encountered include the basic bitmap format (BMP), originating in the develop-
ment of the Microsoft Windows operating system, and the new PNG format, designed as a
more powerful replacement for GIF. TIFF, tagged image file format, represents an
overarching and adaptable file format capable of storing a wide range of different image
data forms. In general, photographic-type images are better suited towards JPEG or TIF
storage, whilst images of limited colour/detail (e.g. logos, line drawings, text) are best suited
to GIF or PNG (as per TIFF), as a lossless, full-colour format, is adaptable to the majority of
image storage requirements.
The choice of image format used can be largely determined by not just the image contents,
but also the actual image data type that is required for storage. In addition to the bit
resolution of a given image discussed earlier, a number of distinct image types also exist:
. Binary images are 2-D arrays that assign one numerical value from the set f0; 1g to each
pixel in the image. These are sometimes referred to as logical images: black corresponds
1.3 IMAGE FORMATS 7
to zero (an ‘off’ or ‘background’ pixel) and white corresponds to one (an ‘on’ or
‘foreground’ pixel). As no other values are permissible, these images can be represented
as a simple bit-stream, but in practice they are represented as 8-bit integer images in the
common image formats. A fax (or facsimile) image is an example of a binary image.
. Intensity or grey-scale images are 2-D arrays that assign one numerical value to each
pixel which is representative of the intensity at this point. As discussed previously, the
pixel value range is bounded by the bit resolution of the image and such images are
stored as N-bit integer images with a given format.
. RGB or true-colour images are 3-D arrays that assign three numerical values to each
pixel, each value corresponding to the red, green and blue (RGB) image channel
component respectively. Conceptually, we may consider them as three distinct, 2-D
planes so that they are of dimension C by R by 3, where R is the number of image rows
and C the number of image columns. Commonly, such images are stored as sequential
integers in successive channel order (e.g. R0G0B0, R1G1B1, . . .) which are then accessed
(as in Matlab) by IðC; R; channelÞ coordinates within the 3-D array. Other colour
representations which we will discuss later are similarly stored using the 3-D array
concept, which can also be extended (starting numerically from 1 with Matlab arrays) to
four or more dimensions to accommodate additional image information, such as an
alpha (transparency) channel (as in the case of PNG format images).
. Floating-point images differ from the other image types we have discussed. By defini-
tion, they do not store integer colour values. Instead, they store a floating-point number
which, within a given range defined by the floating-point precision of the image bit-
resolution, represents the intensity. They may (commonly) represent a measurement
value other than simple intensity or colour as part of a scientific or medical image.
Floating point images are commonly stored in the TIFF image format or a more
specialized, domain-specific format (e.g. medical DICOM). Although the use of
floating-point images is increasing through the use of high dynamic range and stereo
photography, file formats supporting their storage currently remain limited.
Figure 1.4 shows an example of the different image data types we discuss with an example
of a suitable image format used for storage. Although the majority of images we will
encounter in this text will be of integer data types, Matlab, as a general matrix-based data
analysis tool, can of course be used to process floating-point image data.
The other main consideration in choosing an image storage format is compression. Whilst
compressing an image can mean it takes up less disk storage and can be transferred over a
network in less time, several compression techniques in use exploit what is known as lossy
compression. Lossy compression operates by removing redundant information from the image.
As the example of bit-plane slicing in Section 1.2.1 (Figure 1.3) shows, it is possible to
remove some information from an image without any apparent change in its visual
Another Random Document on
Scribd Without Any Related Topics
Continent with their infant daughters in 1821, and the question
became urgent, Where to live? The landed property which he
inherited from his great-uncle was a comparatively small estate at
and around Lea Hall in Derbyshire. To this property he added largely.
The Hall, the old residence of his great-uncle, was discarded (it is
now used as a farm-house), and Mr. Nightingale built a new house,
called Lea Hurst. The charm of its situation and prospect is described
in a letter by Mrs. Gaskell:—
“High as Lea Hurst is, one seems on a pinnacle, with the clouds
careering round one. Down below is a garden with stone terraces and
flights of steps—the planes of these terraces being perfectly gorgeous
with masses of hollyhocks, dahlias, nasturtiums, geraniums, etc. Then a
sloping meadow losing itself in a steep wooded descent (such tints over
the wood!) to the river Derwent, the rocks on the other side of which form
the first distance, and are of a red colour streaked with misty purple.
Beyond this, interlacing hills, forming three ranges of distance; the first,
deep brown with decaying heather; the next, in some purple shadow, and
the last catching some pale, watery sunlight.” “I am left alone,” continued
Mrs. Gaskell, “established high up, in two rooms, opening one out of the
other—the old nurseries.” (The inner one, in which Mrs. Gaskell slept, was,
when Parthenope grew up, her bedroom.) “It is curious how simple it is.
The old carpet doesn't cover the floor. No easy chair, no sofa, a little
curtainless bed, a small glass. In the outer room—the former day nursery
—Miss Florence's room when she is at home, everything is equally simple;
now, of course, the bed is reconverted into a sofa; two small tables, a few
bookshelves, a drab carpet only partially covering the clean boards, and
stone-coloured walls—as cold in colouring as need be, but with one low
window on one side, trellised over with Virginian creeper as gorgeous as
can be; and the opposite one, by which I am writing, looking over such
country!”[6]
The sound of the Derwent was often in Florence's ears. When she
was in the Hospital at Scutari any fretting in the Straits recalled it to
her. “How I like,” she said on a stormy night, “to hear that ceaseless
roar; it puts me in mind of the dear Derwent; how often I have
listened to it from the nursery window.”
III
From her fifth year onwards Florence Nightingale had, then, for
her homes Lea Hurst in the summer months and Embley during the
rest of the year. The family usually spent a portion of the season in
London. The sisters led, it will thus be seen, a life mainly in the
country, and Florence as a child became fond of flowers, birds, and
beasts. A neatly printed manuscript-book is preserved, in which she
made a catalogue of her collection of flowers, describing each with
analytical accuracy, and noting the particular spot at which it was
picked. Her childish letters contain many references to animal
companions. She made particular friends with the nuthatch. She had
a pet pig, a pet donkey, a pet pony. She was fond of riding, and fond
of dogs. “A small pet animal,” she said many years afterwards, “is
often an excellent companion for the sick, for long chronic cases
especially.” “The more I see of men,” wrote a cynic, “the more I love
dogs.” Florence Nightingale, in the same piece from which I have
just quoted, drew a like moral from her experience of some nurses.
“An invalid,” she said, “in giving an account of his nursing by a nurse
and a dog, infinitely preferred that of the dog. ‘Above all,’ he said, ‘it
did not talk.’”[7] There were no babies in the Nightingale family after
the arrival of Florence herself, but most of her mother's many
brothers and sisters married and had families; and as Mr. and
Mrs. Nightingale's houses were often visited by these relations, there
was seldom wanting a succession of babies, and in them and their
christenings, and teethings, and illnesses, and lessons, Florence took
that interest which is often strong in little girls.
Sometimes a baby died, and her letters show that Florence was as
much interested in a death as in a birth. She rejoiced in “the little
angels in heaven.” One of her favourite poems at this period was
The Better Land of Mrs. Hemans, which she copied out for a cousin
as “so very beautiful.” The earliest letter which I have seen, written
when she was ten, strikes mingled notes. She is staying with Uncle
Octavius Smith at “Thames Bank” (a house which then adjoined his
distillery at Millbank), and writes to her sister, who is on a visit with
the maid to another set of cousins:—
Give my love to Clémence, and tell her, if you please, that I am not in
the room where she established me, but in a very small one; instead of
the beautiful view of the Thames, a most dismal one of the black distillery,
and, whenever I open my window, the nasty smell rushes in like a torrent.
But I like it pretty well notwithstanding. There is a hole through the
wall[11] close to my door, which communicates with the bath-room, which
is next the room where Freddy[8] sleeps, and he talks to me by there. Tell
her also, if you please, that I have washed myself all over and feet in
warm water since I came every night. I went up into the distillery to the
very tip-top by ladders with Uncle Oc and Fred Saturday night. We walked
along a great pipe. We have had a good deal of boating which I like very
much. We see three steam-boats pass every day, the Diana, the Fly, and
the Endeavour. My love to all of them except Miss W——. Give my love
particularly to Hilary. Your affect and only sister. Dear Pop, I think of you,
pray let us love one another more than we have done. Mama wishes it
particularly, it is the will of God, and it will comfort us in our trials through
life. Good-bye.
IV
The appeal to his daughter's intellect was characteristic of
Mr. Nightingale. He was himself a well-informed man, educated at
Edinburgh, and Trinity, Cambridge; and, like some others of the
Unitarian circle, he held views much in advance of the average
opinion of his time about the intellectual education of women. The
home education of his daughters was largely supervised by himself;
it included a range of subjects far outside the curriculum current in
“young ladies' seminaries”; and perhaps, like Hannah More's father,
he was sometimes “frightened at his own success.” Letters and note-
books show, it is true, that his daughters were duly instructed in the
accomplishments deemed appropriate to young ladies. We hear of
them learning the use of the globes, writing books of elegant
extracts, working footstools, and doing fancy work. They studied
music, grammar, composition, modern languages. “We used to read
Tasso and Ariosto and Alfieri with my father,” Florence said; “he was
a good and always interested Italian scholar, never pedantic, never a
tiresome grammarian, but he spoke Italian like an Italian and I took
care of the verbs.” Mr. Nightingale added constitutional history, Latin,
Greek, and mathematics. By the time Florence was sixteen, he was
reading Homer with his daughters. Miss Nightingale used to say that
at Greek her sister was the quicker scholar. Their father set them
appointed tasks to prepare. Parthenope would trust largely to
improvisation or lucky shots. Florence was more laborious; and
sometimes would get up at four in the morning to prepare the
lesson. Her knowledge of Latin was of some practical use in later
years. In conversations with abbots and monks whom she met
during her travels she sometimes found in Latin their only common
tongue. Among Florence's papers were preserved many sheets in
her father's handwriting, containing the heads of admirable outlines
of the political history of England and of some foreign states. Her
own note-books show that in her teens she had mastered the
elements of Latin and Greek. She analysed the Tusculan
Disputations. She translated portions of the Phaedo, the Crito and
the Apology. She had studied Roman, German, Italian, and Turkish
history. She had analysed Dugald Stewart's Philosophy of the Human
Mind. Her father was in the habit, too, of suggesting themes on
which his daughters were to write compositions. It was the system
of the College Essay. “Florence has now taken to mathematics,”
wrote her sister in 1840, “and, like everything she undertakes, she is
deep in them and working very hard.” The direction in which
Florence Nightingale was to exercise the faculties thus trained was
as yet hidden in the future; but to her father's guidance she was
indebted for the mental grasp and power of intellectual
concentration which were to distinguish her work in life.
Politics and social observations mingle in the diary with artistic and
architectural notes. The city which seems most to have appealed to
her imagination was not Florence; though she said that she “would
not have missed it for anything,” and, curiously, her sojourn in her
birthplace was the occasion of a characteristic incident. An English
lady, who afterwards became Princess Reuss Köstritz, was staying in
the same lodgings and fell ill, and Florence Nightingale volunteered
to nurse her. But the city which she most admired was Genoa La
Superba. She notes indeed the excessive indolence of the nobles
and excessive poverty of the people, but the palaces “realized an
Arabian Nights story” for her. Mr. and Mrs. Nightingale had many
friends and brought many introductions. In the various towns where
they stayed they mixed in the best society, and their daughters were
thrown into a lively round of picnics, concerts, soirées, dancing:
VI
The fascination of social life must have been brought vividly before
her during the winter (1838–39) which they spent in Paris, in
apartments in the Place Vendôme (No. 22). She was now introduced
into the brilliant circle of the last of the salons. Mary Clarke,
afterwards Madame Mohl, was by descent half Irish, half Scottish; by
education and residence, almost wholly French. “A charming
mixture,” said Ampère of her, “of French vivacity and English
originality.” Full at once of esprit and of espièglerie, well read and
artistic yet wholly devoid of pedantry, without regular beauty of
feature, but alert and piquante, Mary Clarke had gathered round her
what Ticknor in 1837 had found the most intellectual circle in Paris.
For seven years she and her mother lived in apartments in the
Abbaye-au-Bois, adjoining those of Madame Récamier, and Mary was
a daily visitor to the famous salon during the reign of Chateaubriand,
whose closing years she did much to brighten and amuse. At the
time when the Nightingales arrived in Paris, Mrs. and Miss Clarke
had left the Abbaye-au-Bois and established themselves in those
apartments in the Rue du Bac which for nearly forty years were a
haunt of all that was brilliant in the intellectual life of Paris. Mary
Clarke took most affectionately to the Nightingale family, who, with
some of their connections, remained for long years among her
closest friends. She used to pay a yearly visit to Mr. and
Mrs. Nightingale, either at Embley or at Lea Hurst, generally staying
three weeks or a month; and to her many of Florence's most
interesting letters were, as we shall find, addressed. To her other
and more superficial qualities, Mary Clarke added great warmth of
lasting affection for her intimate friends, and her sympathetic
kindness to the Nightingale circle was unfailing. The attraction of
Paris to Florence lay principally in its hospitals and nursing
sisterhoods, but partly also in that it was the home of “Clarkey,” as
they called her. And it was the same with other members of the
family. There is a letter from Lady Verney to Clarkey which describes
how some one asked Mr. Nightingale, “Are you going to Paris?” “Oh,
no,” he replied; “Madame Mohl is ill.” “Then does Paris mean
Madame Mohl?” “Yes, certainly,” he replied gravely. During the winter
of 1838–39 Miss Clarke, writes Lady Verney, was “exceedingly kind
to Florence and me, two young girls full of all kinds of interests,
which she took the greatest pains to help. She made us acquainted
with all her friends, many and notable, among them Madame
Récamier. I know now, better than then, what her influence must
have been thus to introduce an English family (two of them girls
who, if French, would not have appeared in society) into that
jealously guarded sanctuary, the most exclusive aristocratic and
literary salon in Paris. We were asked, even, to the reading by
Chateaubriand, at the Abbaye-au-Bois, of his Mémoires d'Outre-
Tombe, which he could not wait to put forth, as he had intended
when writing them, until after his death—desiring, it was said, to
discount the praises which he expected, but hardly received. This
hearing was a favour eagerly sought for by the cream of the cream
of Paris society at that time.”[11] In Miss Clarke's own apartments,
the Nightingales met many distinguished men. The intimates who
were always there, and who assisted their hostess in making the tea,
were MM. Fauriel and Mohl—Claude Fauriel, versed in mediæval and
Provençal lore, a man exceedingly handsome, who had captivated
Madame de Staël and other ladies besides Mary Clarke in his
friendships; and Julius Mohl, one of the first Orientalists in Europe, a
more ardent lover whom, after a probation of eighteen years, Miss
Clarke married in 1847. M. Mohl was once asked by Queen Victoria
why, loving Germany so much, he had given up his native country
for France. “Ma foi, madame,” he replied, “j'ètais amoureux.” With M.
Mohl, no less than with his wife, Florence Nightingale was on terms
of affectionate friendship. Among the frequent visitors whom she
and her sister met at Miss Clarke's were Madame Tastu (the
poetess), Élie de Beaumont (the geologist), Roulin (the traveller and
naturalist), Cousin, Mignet, Guizot, Tocqueville, Barthélemy St.
Hilaire, and Thiers. The last-named was one of Miss Clarke's earliest
admirers; and many years later, after the Franco-German war, when
Thiers was at the head of affairs, Lady Verney heard M. Mohl say to
his wife, “Madame, why did you not marry M. Thiers instead of me,
for now you would have been Queen of France?”
In such circles as that which gathered around Miss Clarke,
Florence Nightingale was well qualified to hold her own and even to
play a brilliant part. Her life of gaiety on the Riviera and in Italy must
have rubbed away much of the shyness from which she had
suffered. If not beautiful, she was elegant and distinguished. She
was both widely and deeply read. She had many and varied
interests. She had powers of expression, in which clearness was not
unmixed with a note of humorous subacidity. These are social
advantages, and she was not without the inclination to use them.
She chose in the end another path—a path which was beset by
many obstacles of circumstance; but there were obstacles in herself
also, and one of the last “temptations” to be overcome, before she
was free to interpret her call and to act upon it, was (as she wrote in
many a page of confession and self-examination) “the desire to
shine in society.”
CHAPTER II
HOME LIFE
(1839–1845)
Her passionate, ideal nature demanded an epic life: what were many-
volumed romances of chivalry and the social conquests of a brilliant girl to
her? Her flame quickly burned up that light fuel; and, fed from within,
soared after some illimitable satisfaction, some object which would never
justify weariness, which would reconcile self-despair with the rapturous
consciousness of life beyond self.—George Eliot: Middlemarch.
Now there has been enough and too much of musical news, but political
news is scarce.… London was in a perfect whirlwind of excitement for the
few days that the Melbourne ministry was out, but that is stale already.
Our little Queen, who was sadly unpopular when we first came to
England, recovered much of her former favour with the Whig party after
the firmness she showed in this affair. She was cheered and called forward
at the opera, which had not been done for months, and again returning
from chapel. And the birthday drawing-room was overflowing, whereas at
the two first she gave this season, there were hardly forty people! The
story of this last fracas is that on Tuesday, the day of Lord Melbourne's
resignation, the Queen dined upstairs with her mother, Baroness Lehzen,
and Lady F. Hastings, which she had never done since her accession, and
it is supposed that the amende honorable was then made to Lady Flora,
and that in this partie carrée was also arranged the course which was to
be pursued with Sir Robert Peel. The poor little Queen was seen in tears
by several people who told us in the course of the three days, and
struggled for her Ladies, as you see, manfully. However matters may turn
out now, it is said that she has taken so tremendous a dislike to Sir R.
Peel in this affair, that she will never send for him again.
Since that, the House has been adjourned for a fortnight and only met
last Monday when the Speaker was elected, Abercromby going up to the
House of Peers. We are rejoicing in the election of Shaw Lefevre, by a
majority of eighteen; rather less than was expected, however, Spring Rice
arriving half an hour too late to vote, which has made rather a
commotion. Shaw Lefevre is a great friend of ours, and a very agreeable
man, which is his chief qualification for the chair. Macaulay is not likely to
come into the Ministry; Lord Melbourne says that it is impossible to get on
with a man who talks so fast. So he is now writing history, and saying that
it is the only thing worth doing, except, however, standing for Edinburgh
in Abercromby's room[26] against Crawford. Macaulay has made an
admirable speech in favour of ballot there.
We always talk of you and all that you did for us at Paris. I heard
yesterday that Gonfalonieri was coming to London in a month. Is he at
Paris now? I have just been reading the account of M. Mignet's éloge of
Talleyrand. I hope you were there, for it must have been very interesting,
but did not he make rather an extraordinary defence of Talleyrand's
political tergiversation, and of his conduct while the Allies were at Paris?
extraordinary to our ideas of political integrity. We met “ubiquity” Young
and Mr. Babbage yesterday at dinner at the E. Strutts', who told all sorts
of droll stories about Lord Brougham, who seems to have fairly lost his
wits. He had Lord Duncannon to dine with him the other day, which is
new, he having formerly stipulated when he went out to dinner that he
should see none of his former colleagues. He sends his carriage to stand
before Lord Denman's house for hours while he goes and walks in the
Park, or even while he is out of town, to give the idea that they are very
intimate.…
The next day we went up to town by rail in six and a half hours,
notwithstanding that the engine was twice out of order and stopped us.
We had very agreeable company on the road, a neighbour of ours and
equerry to the Queen,[12] who was full of her virtues and condescensions.
How much pleasanter it is travelling by these public conveyances than in
one's own stupid carriage. He said that Lord Melbourne called the Queen's
favourite terrier a frightful little beast, and often contradicted her flat, all
which she takes in good part, and lets him go to sleep after dinner,[27]
taking care that he shall not be waked.[13] She reads all the newspapers
and all the vilifying abuse which the Tories give her, and makes up her
mind that a queen must be abused, and hates them cordially.
II
The Nightingales had taken up their residence at Embley in
September 1839, and remained there, in accordance with their wont,
till the early summer following. The charm of the place is vividly
described in a letter from Florence's sister to her cousin, Miss Hilary
Bonham Carter:—
Florence and her sister loved each other, but their characters were
widely different, as we shall hear, and their love at this time was not
that of perfect sympathy, but rather of wistful admiration on the one
side, and half-pitying fondness on the other. Parthenope looked upon
Florence as upon some strange being in another world, whose
happiness she passionately longed to see, and whose rejection of it
she could but dimly understand. Florence, on her side, regarded her
elder sister's contentment in the beauties of art and nature, and in
the world as she found it, with the tender pity which one may feel
for a happy child. “It would be an ill return for all her affection,”
wrote Florence to one of her aunts, “to drag down my White Swan
from her cool, fresh, blue sea of art into our baby chicken-yard of
struggling, scratting[14] life. How cruel it would be, as she is rocked
to rest there on her dreamy waves, for anybody to waken her.” The
difference in temperament between the sisters comes out very
clearly in their several descriptions of Embley. Florence was sensible
of its beauties, but they came to her with thoughts of a better world
beyond, or with echoes from the still sad music of humanity in the
world that now is. “I should have so liked you to see Embley in the
summer,” she wrote,[15] “for everything is such a blaze of beauty. I
had such a lovely walk yesterday before breakfast. The voice of the
birds is like the angels calling me with their songs, and the fleecy
clouds look like the white walls of our Home. Nothing makes my
heart thrill like the voice of the birds; but the living chorus so seldom
finds a second voice in the starved and earthly soul, which, like the
withered arm, cannot stretch forth its hand till Christ bids it.” A very
different note, it will be observed, from that which Parthenope—and
Pippa—heard from “the lark on the wing.” And so, too, with regard
to the house at Embley. Mr. Nightingale had found it a plain,
substantial building of the Georgian period. He enlarged it into an
ornate mansion in the Elizabethan style. His wife and elder daughter
were much occupied with the interest of furnishing it appropriately,
and Mr. Nightingale was greatly pleased with his alterations. “Do you
know,” said Florence, as she walked with an American friend on the
lawn in front of the drawing-room, “what I always think when I look
at that row of windows? I think how I should turn it into a hospital,
and just how I should place the beds.”[16]
III
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com