Digital Image Fundamentals
Digital Image Fundamentals
www.imageprocessingbook.com
A-PDF PPT TO PDF DEMO: Purchase from www.A-PDF.com to remove the watermark
www.imageprocessingbook.com
www.imageprocessingbook.com
Digital Image
Ddigital image is composed of a finite number of elements, each of which has a particular location and value. These elements are referred to as picture elements, image elements, pels, and pixels. Unlike humans, who are limited to the visual band of the electromagnetic (EM) spectrum, imaging machines cover almost the entire EM spectrum, ranging from gamma to radio waves.
www.imageprocessingbook.com
www.imageprocessingbook.com
From image processing to computer vision: example from medical imaging (1) Low-level: both inputs and outputs are images Primitive image processing
operations: noise reduction, contrast enhancement, image sharpening Coronary angiogram
www.imageprocessingbook.com
From image processing to computer vision: example from medical imaging (2)
coronary artery
Mid-level: inputs are a images, outputs are attributes extracted from the images Segmentation, object
recognition
www.imageprocessingbook.com
From image processing to computer vision: example from medical imaging (3)
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
The shape of the lens is controlled by tension in the fibers of the ciliary body. To focus on distant objects, the controlling muscles cause the lens to be relatively flattened. Similarly, these muscles allow the lens to become thicker in order to focus on objects near the eye. The retinal image is reflected primarily in the area of the fovea. Perception then takes place by the relative excitation of light receptors, which transform radiant energy into electrical impulses that are ultimately decoded by the brain.
2002 R. C. Gonzalez & R. E. Woods
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
A plot of as a function of log I has the general shape shown in Fig. 2.6.This curve shows that brightness discrimination is poor (the Weber ratio is large) at low levels of illumination, and it improves significantly (the Weber ratio decreases) as background illumination increases.The two branches in the curve reflect the fact that at low levels of illumination vision is carried out by activity of the rods, whereas at high levels (showing better discrimination) vision is the function of 2002 R. C. Gonzalez & R. E. Woods cones.
www.imageprocessingbook.com
www.imageprocessingbook.com
Optical Illusions
www.imageprocessingbook.com
Optical Illusions
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
The single sensor is mounted on a lead screw that provides motion in the perpendicular direction. Since mechanical motion can be controlled with high precision, this method is an inexpensive (but slow) way to obtain high-resolution images.
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
The quality of a digital image is determined to a large degree by the number of samples and discrete gray levels used in sampling and quantization.
www.imageprocessingbook.com
The notation introduced allows us to write the complete Mx digital image in the following compact matrix form:
www.imageprocessingbook.com
www.imageprocessingbook.com
Sampling is the principal factor determining the spatial resolution of an image. Basically, spatial resolution is the smallest discernible detail in an image.
www.imageprocessingbook.com
www.imageprocessingbook.com
Gray-level resolution similarly refers to the smallest discernible change in gray level
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
isopreference curves
Sets of these three types of images were generated by varying and k, and observers were then asked to rank them according to their subjective quality. Results were summarized in the form of so-called isopreference curves in the Nk-plane. Points lying on an isopreference curve correspond to images of equal subjective quality. The key point of interest in the context of the present discussion is that isopreference curves tend to become more vertical as the detail in the image increases. This result suggests that for images with a large amount of detail only a few gray levels may be needed.
2002 R. C. Gonzalez & R. E. Woods
www.imageprocessingbook.com
Image Interpolation
Fundamentally, Interpolation is the process of using data to estimate values at unknown locations. Interpolation is a basic tool used zooming, shrinking, rotating, and geometric corrections. The simplest method of interpolation is nearest neighbor interpolation where the intensity of each location assigns the intensity of its nearest neighbor. Although nearest neighbor interpolation is fast, it has the undesirable feature that it produces a checkerboard effect that is particularly objectionable at high factors of magnification. Also, it has the tendency to produce undesirable artifacts, such as a severe distortion of straight edges and
2002 R. C. Gonzalez & R. E. Woods
www.imageprocessingbook.com
Image Interpolation
A more suitable approach is bilinear interpolation, in which we use the four nearest neighbors to estimate the intensity at a given location. Let (x, y) denote the coordinates of a point in the zoomed image (think of it as a point on the grid described previously), and let v(x, y) denote the gray level assigned to it. For bilinear interpolation, the assigned gray level is given by:
v(x, y) = a x + b y + c xy + d
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).
www.imageprocessingbook.com
-Assuming u and v are integer parts of X and Y, respectively, bilinear interpolation is defined by:
www.imageprocessingbook.com
v( x, y ) = aij x i y j
i =0 j =0
where the sixteen coefficients are determined from the sixteen equations in sixteen unknowns that can be written using the sixteen nearest neighbors of point (x,y).
www.imageprocessingbook.com
Image Interpolation
www.imageprocessingbook.com
and are denoted by D(p). These points, together with the 4-neighbors, are called the 8-neighbors of p, denoted by 8(p).
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
www.imageprocessingbook.com
Distance Measures
For pixels p, q, and z, with coordinates (x, y), (s, t), and (v, w), respectively, D is a distance function or metric if
www.imageprocessingbook.com
Distance Measures
The D4 distance between p and q is defined as:
In this case, the pixels having a D4 distance from (x, y) less than or equal to some value r form a diamond centered at (x, y). For example, the pixels with D4 distance 2 from (x, y) (the center point) form the following contours of constant distance:
www.imageprocessingbook.com
Distance Measures
The D8 distance (also called chessboard distance) between p and q is defined as
For example, the pixels with D8 distance 2 from (x, y) (the center point) form the following contours of constant distance: