1 / 69

Chapter Two Digital Image Fundamentals

Chapter Two Digital Image Fundamentals. Agenda: Light and Electromagnetic Spectrum Image Sensing & Acquisition Image Sampling & quantization Relationship Between Pixels Introduction to Mathematical Tools Used in DIP. Digital Image Fundamentals. Electromagnetic Spectrum.

Download Presentation

Chapter Two Digital Image Fundamentals

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter TwoDigital Image Fundamentals

  2. Agenda: Light and Electromagnetic Spectrum Image Sensing & Acquisition Image Sampling & quantization Relationship Between Pixels Introduction to Mathematical Tools Used in DIP Digital Image Fundamentals

  3. Electromagnetic Spectrum Wavelength = c/ (frequency ) Energy = h* frequency

  4. Monochromatic (achromatic) light: Light that is void of color - Attribute: Intensity (amount) . - Gray level is used to describe monochromatic intensity. Chromatic light: To describe it, three quantities are used: - Radiance: The total amount of energy that flows from the light source (measured in Watts). - Luminance: The amount of energy an observer perceives from a light source (measured in lumens). - Brightness: A subjective descriptor of light perception that is impossible to measure (key factor in describing color sensation) Definitions

  5. Image Sensing & Acquisition How to transform illumination energy into digital images using sensing devices

  6. Image Sensing & Acquisition • Image Acquisition using single sensor

  7. Image Sensing & Acquisition • Image Acquisition using Sensor Strips scanners

  8. Image Sensing & Acquisition • Image Acquisition using Sensor Array

  9. White Light Colours Absorbed Green Light Reflected Light • The colours that we perceive are determined by the nature of the light reflected from an object • For example, if white light is shone onto a green object most wavelengths are absorbed, while green light is reflected from the object

  10. Simple Image Formation Model • Simple image formation • f(x,y) = i(x,y)r(x,y) • i(x,y): illumination (determined by ill. Source) • 0 < i(x,y) < ∞ • i(x,y) = 90,000 lm/m2 (clear day), 0.1lm/m2 (evening) • i(x,y) = 10,000 lm/m2 (cloudy day), • r(x,y) reflectance (determined by imaged object) • 0 < r(x,y) < 1 • 0.01 for black velvet • 0.65 for stainless steel • In real situation • Lmin≤ L=f(x,y) ≤ Lmax • Lmin = imin * rmin • Lmax = imax * rmax • L : gray level

  11. Image Sampling & quantization Continues image f(x,y) needs to be in digital form. Digitizing the coordinate values called sampling. Sampling should be in both coordinates and in amplitude. Image Sampling

  12. Image Quantization Image Sampling & quantization Digitizing the Amplitude values called image quantization. Sampling limits established by no. of sensors, but quantization limits by color levels.

  13. Image Sampling & quantization Digital Image Representation Each element called image element, picture element, or pixel

  14. Image Sampling & quantization

  15. Image Sampling & quantization

  16. Image Sampling & quantization The notation (0,1), is used to signify the second sample along the first row, not the actual physical coordinates when the image was sampled

  17. Image Sampling & quantization Consider an image which has : M * N : size of the image L : Number of discrete gray levels in this image L= 2k Where k is any positive integer The total number of bits needed to store this image b : b = M * N * K, If M = N, then b= N2 * K

  18. Image Sampling & quantization The dynamic range is the ratio of the max (determined by saturation) measurable intensity to the min. (limited by noise) detectable intensity. Contrast is defined as the difference in intensity between the highest and the lowest intensity levels in an image.

  19. Image Sampling & quantization • The dynamic range of an image can be described as: • High dynamic range: • Gray levels span a significant portion of the gray scale. • Low dynamic range: • Dull, washed out gray look.

  20. Spatial resolution: - # of samples per unit length or area. - Lines and distance: Line pairs per unit distance. • Gray level resolution: - Number of bits per pixel. - Usually 8 bits. - Color image has 3 image planes to yield 8 x 3 = 24 bits/pixel. - Too few levels may cause false contour. Image Sampling & quantization

  21. Image Sampling & quantization The subsampling was accomplished by deleting the appropriate number of rows and columns from the original image. Spatial Image Resolutions No. of gray levels (K) is constant(8-bits images). No. of samples (N) is reduced (No. of sensors)

  22. Image Sampling & quantization Comparison between all image sizes

  23. Image Sampling & quantization

  24. Image Sampling & quantization Gray Level Image Resolutions No. of samples (N) is constant, but gray levels (K) decreases. (false contouring)

  25. Image Sampling & quantization What is the effect of changing N and K..? Little, Intermediate, and Large amount of details

  26. Image Sampling & quantization Isopreference Curve

  27. Image Interpolation • Interpolation is the process of using known data to estimate values at unknown locations. • Interpolation is a basic tool used in tasks such as zooming, shrinking, rotating, and geometric correction. • shrinking and zooming (resampling) • Zooming : requires two steps • Creation of a new pixel location • Assignment of a gray level to those new locations

  28. Image Interpolation • Nearest neighbour interpolation (ex 500 x 500 image) • Laying an imaginary 750 x 750 grid over the original image • Shrink it so that it fits exactly over the original image • Spacing in the grid will be less than one pixel • Look for the closest pixel in the original image and assign its gray level to the new pixel in the grid. • Fast but produces checkerboard effect

  29. Image Interpolation • Bilinear interpolation (four neighbours of point) • Let x, y a point in the zoomed image • v (x, y) a gray level assigned to it • v is given by • v (x, y) = ax + by + cxy +d • The coefficients are determined from the four equations using the four neighbours. • Bicubic interpolation (16 coefficeints) • Better job of preserving finer details • Standard in commercial image editing programs

  30. Image Interpolation

  31. Relationship Between Pixels 1- Neighbors of a Pixel: The 4- neighbors of pixel p are: N4(p) The 4- diagonal neighbors are: ND(p) The 8-neighbors are : N8(p)

  32. Relationship Between Pixels • Adjacency of Pixels:- • Let V be the set of intensity used to define adjacency; e.g. V={1} if we are referring to adjacency of pixels with value 1 in a binary image with 0 and 1. • In a gray-scale image, for the adjacency of pixels with a range of intensity values of , say, 100 to 120, it follows that V={100,101,102,…,120}. • We consider three types of adjacency :

  33. Adjacency • 4- adjacency • Two pixels p and q with values from V are 4- adjacency if q is in the set N4(p) .

  34. Adjacency • 8- adjacency • Two pixels p and q with values from V are 8- adjacency if q is in the set N8(p) . • m- adjacency (mixed adjacency) • Two pixels p and q with values from V are m- adjacency if • (i) q is in N4(p) , or • (ii) q is in ND( p) and N4( p) ∩ N4 (q) is empty

  35. Path • A (digital) path(or curve) from pixel p at (x,y) to pixel q at (s,t) is a sequence of distinct pixels with coordinates • (x0,y0), (x1,y1), …,, (xn,yn) • where (x0,y0) =(x,y), (xn,yn)=(s,t), and pixel (xi,yi) and (xi-1,yi-1) are adjacent for 1≤ i ≤ n • n is the length of the path • If (x0,y0) =(xn,yn), the path is a closed path • The path can be defined 4-,8-,m-paths depending on adjacency type

  36. Connectivity • Let S be a subset of pixels in an image. • Two pixels p and q are said to be connected in S if there exists a path between them consisting entirely of pixels in S • For any pixel p in S, the set of pixels that are connected to it in S is called a connected component of S. • If it only has one connected component, then set S is called a connected set.

  37. Region • Let R be a subset of pixels in an image. We call R a region of the image if R is a connected set • Two regions are said to be adjacent if their union forms a connected set. • Ri, Rj are adjacent in 8-adjacency sense. • They are not adjacent in 4-adjacency sense.

  38. Boundary • Suppose that an image contains K disjoint regions, Rk, k = 1,2 ,...,k, none of which touches the image border. • Let Ru be the union of all the K regions, and let (Ru)c denote its complement. • We call the points in Ru the foreground, and all the points in (Ru)c the background of the image. • The inner boundary (border or contour) of a region R is the set of points that are adjacent to the points in the complement of R. i.e set of pixels in the region that have at least one background neighbour.

  39. Boundary The point circle is not member of the border of the 1-valued region if 4-connectivity is used. As a rule, adjacency between points in a region and its background is defined in terms of 8-connectivity.

  40. Boundary • The outer border corresponds to the border in the background. • This definition to guarantee the existence of a closed path

  41. for pixel p, q and z with coordinates (x,y), (s,t) and (u,v) respectively, D is a distance function or metric if 􀂄 (a) D(p,q) ≥ 0 ; D(p,q) = 0 iff D=q 􀂄 (b) D(p,q) = D(q,p) 􀂄 (c) D(p,z) ≤ D(p,q) + D(q,z) Distance Measures

  42. Distance Measures 1- The Euclidean distance between p and q is defined as:

  43. Distance Measures 2- The D4 distance (city-block distance) between p and q is defined as:

  44. Distance Measures 3- The D8 distance (chessboard distance) between p and q is defined as

  45. Distance Measures 4- The Dm distance: the shortest m-path between the points.

  46. Array Versus Matrix Operations • Array product • See matrix multiplication

  47. Linear versus Nonlinear Operations • Consider general operator H • H is said to be a linear operator if • Assume sum operator

  48. Linear versus Nonlinear Operations • Let a1 = 1 , a2 =-1

  49. Arithmetic Operations • Carried out between corresponding pixel pairs • Same size of arrays • Let g(x,y) denote a corrupted image formed by the addition of noise η(x,y), to a noiseless image f(x,y); • g(x,y) = f(x,y) + η(x,y) • where the assumption is that at every pair of coordinates (x,y) the noise is uncorrelated and has a zero average.

  50. Arithmetic Operations • If the noise satisfies the constrains just stated, then an image g(x,y) is formed by averaging K different noisy images, • As K increases the variability of the pixels at each location decreases.

More Related