Digital Image Processing
Digital Image Processing
Sabir
Fifth Class / Biomedical Engineering
• Image is an artifact like a two dimensional picture, that has a
similar appearance to some subject like a physical object or
person.
• Image processing is any form of signal processing for which the
input is an image and the output may either be an image or a
set of characteristics or parameters related to the image.
• Image processing is used in areas such as multimedia,
computing, secured image communication, biomedical
imaging, pattern recognition, remote sensing, image
compression and retrieval, …etc.
• The need/motivation for image processing:
• The enhancement/improvement of pictorial information for:
• human interpretation
• automatic management (identification, storage, transmission,
quantification, ...)
• What is digital image processing?
• Processing of an image by means of digital computers.
• Nuclear medicine
• (injection of radioactive
tracer)
• Astronomical
observations
• (object generate
gamma rays)
PET=Positron Emission
Tomography
• -used in
medicine/industry/astronomy
• microscopy (fluorescence)
• the excited electron jumps to
another energy level emitting light as
a low-energy photon in the red region
• lasers
• biological imaging
• astronomical imaging
• industrial inspections A fluorescent tracer is bind to a
molecular target
Nasa/Landsat Mount Everest
Mount Everest is the highest mountain on Earth, rising 29,029
feet above sea level. It is located on the border of Nepal and
Tibet in the Himalayan mountain range. In Tibet the mountain
is known as Chomolunga and in Nepal it is called Sagarmatha.
automated inspection
tasks
radio band:
MRI - imaging
(Nobel prizes: Bloch 1952,
… , 2003)
The right side of this equation is a digital image by definition. Each element
of this array is called an image element, picture element, pixel, or pel. The
terms image and pixel are used throughout the rest of our discussions to
denote a digital image and its elements.
• A given picture can be represented with different numbers of pixels
and various numbers of bits per pixel.
• Fewer pixels produces lower quality. (pixel resolution)
• Fewer bits per pixel produces lower quality. (Special resolution
DPI)
• Gray level resolution.
• Spectral resolution.
• There is a tradeoff between quality and picture storage
requirements.
Classification of images
• The most common 2-D image formats are listed in following Table.
Types of Images Based on Attributes
• In true colour images, the pixel has a colour that is obtained by mixing the
primary colours red, green, and blue. Each colour component is
represented like a grey scale image using eight bits. Mostly, true colour
images use 24 bits to represent all the colours.
• Indexed Image, is a special category of colour images is the indexed
image. In most images, the full range of colours is not used. So it is better
to reduce the number of bits by maintaining a colour map, gamut, or
palette with the image.
• Like true colour images, Pseudocolour images are also used widely in
image processing. True colour images are called three-band images.
However, in remote sensing applications, multi-band images or multi-
spectral images are generally used. These images, which are captured by
satellites, contain many bands.
RGB or true-color 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.
Types of
Images Based
on Data Types
(Classes)
Ex: Single, double,
Signed or unsigned
What is digital image processing?
Low-level : input, output are images
Primitive operations such as image preprocessing to reduce noise, contrast
enhancement, and image sharpening
Mid-level : inputs may be images, outputs are attributes extracted from
those images
Segmentation
Description of objects
Classification of individual objects
High-level :
Image analysis
Image Acquisition:
An image is captured by a sensor (such as a monochrome or color TV
camera) and digitized.
If the output of the camera or sensor is not already in digital form,
an analog-to-digital converter digitizes it.
oCamera:
• Camera consists of 2 parts
1.A lens that collects the appropriate type of radiation emitted from the
object of interest and that forms an image of the real object.
2. a semiconductor device – so called charged coupled device or CCD
which converts the image into an electrical signal.
oFrame Grabber:
• Frame grabber only needs circuits to digitize the electrical signal from the
imaging sensor to store the image in the memory (RAM) of the
computer.
Image Enhancement:
• To highlight certain features of interest in an image.
Example:
Image Restoration:
• Improving the appearance of an image.
• Tend to be based on mathematical or probabilistic models of image
degradation.
• Example:
Color Image Processing:
• Gaining in importance because of the significant increase in the use of digital
images over the Internet.
Wavelets:
• Foundation for representing images in various degrees of resolution.
• Used in image data compression and pyramidal representation.
Compression:
• Reducing the storage required to save an image or the bandwidth required to
transmit it.
• Ex. JPEG (Joint Photographic Experts Group) image compression standard.
Morphological processing:
• Tools for extracting image components that are useful in the
representation and description of shape.
Image Segmentation:
• Computer tries to separate objects from the image background.
• It is one of the most difficult tasks in DIP.
• Output of the segmentation stage is raw pixel data, constituting
either the boundary of a region or all the points in the region itself.
Representation & Description:
• Representation make a decision whether the data should be
represented as a boundary or as a complete region.
Boundary representation focus on external shape characteristics, such as
corners and inflections.
Region representation focus on internal properties, such as texture or
skeleton shape.
Representation & Description:
Representation + Description
1 connected component, 1 hole
• where the four coefficients are determined from the four equations in four
unknowns that can be written using the four nearest neighbors of point (x’,
y’).
• Image shrinking is done in a similar manner as just described for zooming.
• The equivalent process of pixel replication is row-column deletion.
• For example, to shrink an image by one-half, we delete every other row and
column.
• We can use the zooming grid analogy to visualize the concept of shrinking by
a non integer factor, except that we now expand the grid to fit over the
original image, do gray-level nearest neighbor or bilinear interpolation, and
then shrink the grid back to its original specified size.
• f(x,y) must be nonzero and finite, that is
0 < f(x,y) < ∞
The function f(x,y) may be characterized by two components:
1- The amount of source illumination incident on the scene being viewed. Is called the illumination component,
and is denoted by i(x,y)., and
2- The amount of illumination reflected by the objects in the scene, is called reflectance component and is
denoted by r(x,y).
f(x,y)= i(x,y)*r(x,y)
Where
0<i(x,y)<∞
And
0< r(x,y) < 1
• The nature of i(x,y) is determined by the illumination source, and r(x,y) is determined by the c/cs of the image
objects.
Radiography (X-Rays)
o X-Rays is an electromagnetic radiation which can ionize the matter through which it passes as it has high
energy content.
o The ionization can cause damage to DNA and cells in human tissues. However it can penetrate the body to
allow noninvasive visualization of the internal anatomy of the human body.
In order to reduce the ill effect of ionization due to X-Rays while taking radiography, new X-Rays techniques
are being developed to minimize the radiation dose.
o If the electron beam is accelerated with enough energy by applying suitable voltage, the radiation
produced is X-Ray portion of the electromagnetic spectrum.
Anode
(X-ray source)
Cathode
(electron source)
- X-Rays emanate from a small point source and pass through a portion of the body and
onto a detector that records the X-Rays that reach the detector as an image which is called
radiograph
- The X-Ray exposure is kept for precise and finite duration by an electronic time
switch.
- The exposure is also automatically terminated after a certain amount of radiation
has been received by the image receptor with the help of phototiming circuit.
- The operator selects all operating parameters like exposure and dose of radiation
from the operator’s console
A collimator is used at the exit port of the X-Ray tube to adjust the size
and the shape of the X-Ray field.
Source
Restrictor Subject
(Collimator) Anti-scatter Detector
in cm-1
Low energies can distinguish different material better than higher energies
Image processing for BME 1_Lec 5_ 2020 128
Interaction of Photons with Matter: Attenuation
• Visible:
– descending aorta,
– renal arteries,
– iliac arteries
• Can see
– Fracture in pelvis
– Femur
• Cannot see
– Soft tissues
• Cannot see
ventricles, blood
vessels
o Transmission imaging refers to imaging in which the energy source is outside the
body on one side, and the energy passes through the body and is detected on the
other side of the body.
Radiography is a transmission imaging modality.
o Projection imaging refers to the case when each point on the image corresponds
to information along a straight line trajectory through the patient.
Radiography is also a projection imaging modality.
o Radiographic images are useful for a very wide range of medical indications,
including the diagnosis of broken bones, lung cancer, cardiovascular disorders,
etc.
https://youtu.be/-DJiW1YADoE
o Some digital mammography systems are now capable of tomosynthesis, whereby the X-Ray tube
(and in some cases the detector) moves in an arc from approximately 7 to 40 degrees around the
breast. This limited angle tomographic method leads to the reconstruction of tomosynthesis images,
which are parallel to the plane of the detector, and can reduce the superimposition of anatomy above
and below the in-focus plane.
https://youtu.be/KU8Uz1x9xWM
Image processing for BME 1_Lec 5_ 2020 150
Recording X-Rays
The image detectors used in diagnostic radiology could be:
Screen-Film
Photographic film (X-Ray films):
Direct film recording (like Roentgen)
• X-Ray films are the most important material used to “decode” the information
carried by the attenuated X-Ray beam, when they are made to pass through the
tissue.
• They capture the invisible image into visible form.
• Very low efficiency: film is thin, most X-Rays pass through the film emulsion
« Latent »
Source Bone radiological
focus
image on film
X Soft
tissue
Air
Primary
collimation
Manifest
Washing drying image
Film Processing
Image processing for BME 1_Lec 5_ 2020 162
Processor (Top View)