EELE 5310: Digital Image Processing. Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

Size: px
Start display at page:

Download "EELE 5310: Digital Image Processing. Ch. 3. Eng. Ruba A. Salamah. iugaza.edu"

Transcription

1 EELE 531: Digital Image Processing Ch. 3 Eng. Ruba A. Salamah iugaza.edu 1

2 Image Enhancement in the Spatial Domain 2

3 Lecture Reading 3.1 Background 3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations Image Negatives Log Transformations Power-Law Transformations Piecewise-Linear Transformation Functions Contrast stretching Gray-level slicing Bit-plane slicing 3

4 Principle Objective of Enhancement Process an image so that the result will be more suitable than the original image for a specific application. The suitableness is up to each application. A method which is quite useful for enhancing an image may not necessarily be the best approach for enhancing another images 4

5 2 domains Spatial Domain : (image plane) Techniques are based on direct manipulation of pixels in an image Frequency Domain : Techniques are based on modifying the Fourier transform of an image There are some enhancement techniques based on various combinations of methods from these two categories. 5

6 Good images For human visual The visual evaluation of image quality is a highly subjective process. It is hard to standardize the definition of a good image. A certain amount of trial and error usually is required before a particular image enhancement approach is selected. 6

7 Spatial Domain Procedures that operate directly on pixels. g(x,y g( x,y)) = T[f(x,y T[f(x,y)] )] where f(x,y f( x,y)) is the input image g(x,y g( x,y)) is the processed image T is an operator on f defined over some neighborhood of (x,y x,y)) 7

8 Mask/Filter Neighborhood of a point (x,y) can be (x,y) defined by square/rectangular using a subimage area centered at (x,y) The center of the subimage is moved from pixel to pixel starting at the top left corner. 8

9 Mask Processing or Filtering Neighborhood is bigger than 1x1 pixel Use a function of the values of f in a predefined neighborhood of (x,y) to determine the value of g at (x,y) The value of the mask coefficients determine the nature of the process. Used in techniques like: Image Sharpening Image Smoothing 9

10 Point Processing Neighborhood = 1x1 pixel g depends on only the value of f at (x,y x,y)) T = gray level (or intensity or mapping) transformation function: s = T(r) Where r = gray level of f( f(x,y x,y)) s = gray level of g( g(x,y x,y)) Because enhancement at any point in an image depends only on the gray level at that point, techniques in this category often are referred to as point processing. 1

11 Contrast Stretching Produce higher contrast than the original by: darkening the levels below m in the original image Brightening the levels above m in the original image 11

12 Thresholding Produce a two-level (binary) image T(r) is called a thresholding function. 12

13 3 basic gray-level transformation functions Negative nth root Log nth power Linear function Logarithm function Identity Inverse Log Negative and identity transformations Log and inverse-log transformation Power-law function nth power and nth root transformations Input gray level, r 13

14 Image Negatives Negative nth root An image with gray level in the range [, LL-1] where L = 2n ; n = 1, 2 Negative transformation : Log nth power s = L 1 r Identity Inverse Log Input gray level, r Reversing the intensity levels of an image. Suitable for enhancing white or gray detail embedded in dark regions of an image, especially when the black area dominant in size. 14

15 Image Negatives Example: Original Negative 15

16 Log Transformations s = c log (1 (1+r) Negative nth root c is a constant and r Log curve maps a narrow range of low gray-level values in the input image into a wider range of output levels. The opposite is true for higher values. Used to expand the values of dark pixels in an image while compressing the higher-level values. Log nth power Identity Inverse Log Input gray level, r 16

17 Example of Logarithm Image 17

18 Inverse Logarithm Transformations Negative nth root Do opposite to the Log Transformations Log nth power Used to expand the values of high pixels Identity Inverse Log in an image while compressing Input gray level, r the darker-level values. 18

19 Power-Law Transformations s = cr Input gray level, r Plots of s = cr for various values of γ (c = 1 in all cases) c and γ are positive constants Power-law curves with fractional values of γ map a narrow range of dark input values into a wider range of output values. The opposite is true for higher values of input levels. c = γ = 1 Identity function 19

20 Example 1: Gamma correction Monitor Gamma correction = 2.5 Monitor Cathode ray tube (CRT) devices have an intensityto-voltage response that is a power function, with γ varying from 1.8 to 2.5 The picture will become darker. Gamma correction is done by preprocessing the image before inputting it to the monitor with s = cr1/ =1/2.5 =.4 2

21 Example 2: MRI a b (a) The picture is predominately dark (b) Result after power-law transformation with γ =.6 (c) transformation with γ =.4 c d (best result) (d) transformation with γ =.3 (washed out look) under than.3 will be reduced to unacceptable level. 21

22 Example 3 a b c d (a) image has a washed-out appearance, it needs a compression of gray levels needs γ > 1 (b) result after power-law transformation with γ = 3. (suitable) (c) transformation with γ = 4. (suitable) (d) transformation with γ = 5. (high contrast, the image has areas that are too dark, some detail is lost) 22

23 Piecewise-Linear Transformation Functions Advantage: The form of piecewise functions can be arbitrarily complex Disadvantage: Their specification requires considerably more user input 23

24 Contrast Stretching increase the dynamic range of the gray levels in the image (b) a low-contrast image (c) result of contrast stretching: (r1,s1)=(rmin,) and (r2,s2) = (rmax,l-1) (d) result of thresholding 24

25 Gray-level slicing Highlighting a specific range of gray levels in an image Display a high value of all gray levels in the range of interest and a low value for all other gray levels (a) transformation highlights range [A,B] of gray level and reduces all others to a constant level (result in binary image) (b) transformation highlights range [A,B] but preserves all other levels 25

26 Bit-plane Slicing One 8-bit byte Highlighting the contribution made to total image appearance Bit-plane 7 (most significant) by specific bits Suppose each pixel is represented by 8 bits Higher-order bits contain the majority of the visually Bit-plane (least significant) significant data Useful for analyzing the relative importance played by each bit of the image 26

27 Example An 8-bit fractal image 27

28 8 bit planes Bit-plane 7 Bit-plane 6 BitBitBitplane 5 plane 4 plane 3 BitBitBitplane 2 plane 1 plane 28

29 Next lecture Reading 3.3 Histogram processing Histogram Equalization Histogram Specification 3.4 Enhancement Using Arithmetic/Logic Operations Image Subtraction Image Averaging 29

30 Histogram Processing Histogram of a digital image with gray levels in the range [,L-1] is a discrete function h(rk) = nk Where rk : the kth gray level nk : the number of pixels in the image having gray level rk h(rk) : histogram of a digital image with gray levels rk 3

31 Example No. of pixels Gray level 4x4 image Gray scale = [,9] histogram 31

32 Normalized Histogram dividing each of histogram at gray level rk by the total number of pixels in the image, n p(rrk) = nk / n p( For k =,1,,L-1 p(rrk) gives an estimate of the probability of occurrence p( of gray level rk The sum of all components of a normalized histogram is equal to 1 32

33 Histogram Processing Basic for numerous spatial domain processing techniques Used effectively for image enhancement Information inherent in histograms also is useful in image compression and segmentation 33

34 Example Dark image Components of histogram are concentrated on the low side of the gray scale. Bright image Components of histogram are concentrated on the high side of the gray scale. 34

35 Example Low-contrast image histogram is narrow and centered toward the middle of the gray scale High-contrast image histogram covers broad range of the gray scale and the distribution of pixels is not too far from uniform, with very few vertical lines being much higher than the others 35

36 Histogram Equalization As the low-contrast image s histogram is narrow and centered toward the middle of the gray scale, if we distribute the histogram to a wider range the quality of the image will be improved. We can do it by adjusting the probability density function of the original histogram of the image so that the probability spread equally 36

37 Histogram transformation s = T(r) s sk= T(rk) T(r) rk 1 r Where r 1 T(r) satisfies (a). T(r) is singlevalued and monotonically increasingly in the interval r 1 (b). T(r) 1 for r 1 ٣٧

38 2 Conditions of T(r) Single-valued (one-to-one relationship) guarantees that the inverse transformation will exist Monotonicity condition preserves the increasing order from black to white in the output image T(r) 1 for r 1 guarantees that the output gray levels will be in the same range as the input levels. The inverse transformation from s back to r is r = T -1(s) ; s 1 38

39 Probability Density Function The gray levels in an image may be viewed as random variables in the interval [,1] PDF is one of the fundamental descriptors of a random variable 39

40 Applied to Image Let pr(r) denote the PDF of random variable r ps (s) denote the PDF of random variable s If pr(r) and T(r) are known and T-1(s) satisfies condition (a) then ps(s) can be obtained using a formula : dr ps(s) = pr (r) ds The PDF of the transformed variable s is determined by the graylevel PDF of the input image and by the chosen transformation function 4

41 Transformation function A transformation function of particular importance r in DIP is : Thus: s = T ( r ) = pr ( w )dw ds dt ( r ) = dr dr r d = pr ( w )dw dr = pr ( r ) dr ps ( s ) = pr ( r ) ds Substitute and yield 1 = pr ( r ) pr ( r ) = 1 where s 1 41

42 Transformation function It is important to note that T(r) depends on pr(r), the resulting ps(s) always is uniform, independent of the form of pr(r). r s = T(r)= p r ( w ) dw yields a random variable s characterized by a uniform probability function Ps(s ) 1 s 42

43 Discrete Transformation Function The probability of occurrence of gray level in an image is approximated by nk pr (rk ) = n where k =, 1,..., L-1 The discrete version of transformation k sk = T ( rk ) = pr ( rj ) j= k nj j= n = where k =, 1,..., L-1 43

44 Histogram Equalization Implementation Thus, an output image is obtained by mapping each pixel with level rk in the input image into a corresponding pixel with level sk in the output image such that: k nj j = n sk = where k =, 1,..., L-1 44

45 Example1 rk p(rk) ٠ ٢ ٤ ٦ ٨ ١٠ ١٢ ١٤ 45

46 Example1 Solution: rk p(rk) p(rk) (L-1)* p(rk) Sk s ps

47 Continue ٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ١٠ ١١ ١٢ ١٣ ١٤ ١٥

48 Example2 rk p(rk) ٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ١٠ ١١ ١٢ ١٣ ١٤ ١٥ 48

49 Example2 Solution: rk p(rk) p(rk) (L-1)* p(rk) Sk s ps

50 Continue ٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ١٠ ١١ ١٢ ١٣ ١٤ ١٥

51 Example3 rk p(rk)

52 Example3 Solution: rk p(rk) p(rk) (L-1)* p(rk) Sk s ps

53 Continue ٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩ ١٠ ١١ ١٢ ١٣ ١٤ ١٥

54 Example4 ٥٤

55 Histogram Processing Transformation functions used to equalized the histogram ٥٥

56 Histogram Matching (Specification) Histogram equalization has a disadvantage which is that it can generate only one type of output image. With Histogram Specification, we can specify the shape of the histogram that we wish the output image to have. It doesn t have to be a uniform histogram. ٥٦

57 Consider the continuous domain Let pr(r) denote continuous probability density function of gray-level of input image, r Let pz(z) denote desired (specified) continuous probability density function of gray-level of output image, z r Let s be a random variable with the property z We need to find z such that: s = T( r ) = g ( z ) = pz ( t )dt = s p ( w )dw r Thus: s = T(r) = G(z). Therefore: z = G-1(s) = G-1[T(r)] Assume G-1 exists and satisfies the condition (a) and (b). We can map an input gray level r to output gray level z 57

58 Discrete Formulation k sk = T ( rk ) = pr ( rj ) j= k nj j= n = k k =,1,2,..., L 1 G( zk ) = pz ( zi ) = sk k =,1,2,..., L 1 i = zk = G 1 [T ( rk )] = G 1 [sk ] k =,1,2,..., L 1 ٥٨

59 Histogram Matching Implementation 1. Find histogram of input image, and find histogram equalization mapping: 2. sk = k j= p r (r j ) Specify the desired histogram, and find histogram equalization mapping: k vk = p z ( z j ) j = 3. For every value of sk use the stored values of G to find the corresponding min value zq such that: 59

60 Histogram Matching Implementation ٦٠

61 Histogram Matching Example Consider an 8-level image with the shown histogram Match it to the image with the histogram ٦١

62 Example Continue 1. Equalize the histogram of the input image using transform s =T(r) ٦٢

63 Example Continue 2. Equalize the desired histogram v = G(z). ٦٣

64 Example Continue 3. Set v = s to obtain the composite transform k rk Sk 1 vk zk ٦٤

65 Example Image is dominated by large, dark areas, resulting in a histogram characterized by a large concentration of pixels in pixels in the dark end of the gray scale Image of Mars moon ٦٥

66 Image Equalization Result image after histogram equalization Transformation function for histogram equalization Histogram of the result image ٦٦

67 Solve the problem Since the problem with the transformation function of the histogram equalization was caused by a large concentration of pixels in the original image with levels near Histogram Equalization A reasonable approach is to modify the histogram of that image so that it does not have this property ٦٧

68 Histogram Specification Histogram Specification (1) the transformation function G(z) obtained from the specified histogram. (2) the inverse transformation G-1(s) ٦٨

69 Result image and its histogram Original image After applingthe histogram matching The output image s histogram ٦٩

70 Notes Histogram specification is a trial-and-error process There are no rules for specifying histograms, and one must resort to analysis on a case-by-case basis for any given enhancement task. ٧٠

71 Readings From the book the following sections: 3.4: Enhancement Using Arithmetic/Logic Operations 3.4.1: Image Subtraction :Image Averaging 71

72 Enhancement using Arithmetic/Logic Operations Arithmetic/Logic operations are performed on pixel by pixel basis between two or more images Except NOT operation which perform only on a single image. We need only be concerned with the ability to implement the AND, OR, and NOT which are functionally complete. Pixel values are processed as strings of binary numbers. NOT operation = negative transformation ٧٢

73 Example of AND Operation The AND and OR operations are used for masking; for selecting subimages in an image. ROI processing. original image AND image mask result of AND operation 73

74 Example of OR Operation original image OR image mask result of OR operation ٧٤

75 Image Subtraction The difference between two images f(x, y) and h(x, y): g(x,y g( x,y)) = f(x,y f(x,y)) h( h(x,y x,y)) is obtained by computing the difference between all pairs of corresponding pixels from f and h. The key usefulness of subtraction is the enhancement of differences between images. 75

76 Image Subtraction 76

77 Mask mode radiography Note: the background is dark because it doesn t change much in both images. the difference area is bright because it has a big change ٧٧

78 Note The values in a difference image can range from 255 to 255, so some sort of scaling is required. One method is to add 255 to every pixel and then divide by 2. Another method is the min_max normalization: Where mina and maxa are the min and max values of the diff. image, and new_maxa = 255, and new_mina=. thus 78

79 Image Averaging consider a noisy image g(x,y) formed by the addition of noise η(x,y) to an original image f(x,y) g(x,y) = f(x,y) + η(x,y) 79

80 Image Averaging if noise has zero mean and is uncorrelated then it can be shown that if image formed by averaging K different noisy images. Then: and Thus if K increases, the variability (noise) of the pixel at each location (x,y) decreases in g(x,y). This means that g(x,y) approaches f(x, y) as the number of noisy images used in the averaging process increases. 8

81 Example a b c d e f a) original image b) image corrupted by additive Gaussian noise with zero mean and a standard deviation of 64 gray levels. c). -f). results of averaging K = 8, 16, 64 and 128 noisy images ٨١

82 Example 82

83 Reading 3.5: Basics of Spatial Filtering 3.6:Smoothing Spatial Filters 3.6.1: Smoothing Linear Filters 3.6.2: Order-Statistics Filters 3.7: Sharpening Spatial Filters The Laplacian Operator Use of First Derivatives for Enhancement 3.8: Combining Spatial Enhancement Methods 83

84 Spatial Filtering Origin x Simple 3*3 Neighbourhood y a b c d e f g h i Original Image Pixels e * r s t u v w x y z Filter 3*3 Filter Image f (x, y) eprocessed = v*e + r*a + s*b + t*c + u*d + w*f + x*g + y*h + z*i The above is repeated for every pixel in the original image to generate the processed image

85 Spatial Filtering use filter (can also be called as mask/kernel/template or window) the values in a filter subimage are referred to as coefficients, rather than pixel. our focus will be on masks of odd sizes, e.g. 3x3, 5x5, 85

86 Spatial Filtering 86

87 Spatial Filtering Process simply move the filter mask from point to point in an image. at each point (x,y), the response of the filter at that point is calculated using a predefined relationship. Or: 87

88 Linear Filtering Linear Filtering of an image f of size MxN filter mask of size mxn is given by the expression where a = (m-1)/2 and b = (n-1)/2 To generate a complete filtered image this equation must be applied for x =, 1, 2,, M-1 and y =, 1, 2,, N-1 88

89 Note An important consideration in implementing neighborhood operations for spatial filtering is the issue of what happens when the center of the filter approaches the border of the image. There are several ways to handle this situation: limit the excursions of the center of the mask to be at a distance no less than (n-1)2 pixels from the border. filter all pixels only with the section of the mask that is fully contained in the image. Other approaches include padding the image by adding rows and columns of s (or other constant gray level), or padding by replicating rows or columns. 89

90 Smoothing Spatial Filters Image sensors and transmission channels may produce certain type of noise characterized by random and isolated pixels with out-of-range gray levels, which are either much lower or higher than the gray levels of the neighboring pixels. One way to get rid of this kind of noise is to use the average of a small local region in the image so that the out-of-range gray levels can be suppressed. 9

91 Smoothing Spatial Filters Used for image blurring and for noise reduction Blurring is used in preprocessing steps, such as removal of small details from an image prior to object extraction bridging of small gaps in lines or curves noise reduction can be accomplished by blurring with a linear filter and also by a nonlinear filter 91

92 Two Types of Smoothing filters Smoothing Linear Filter Order-Statistics Filters 92

93 Smoothing Linear Filters These filters are called averaging filters or lowpass filters. Replacing the value of every pixel in an image by the average of the gray levels in the neighborhood will reduce the sharp transitions in gray levels. sharp transitions random noise in the image edges of objects in the image Thus, smoothing can reduce noises (desirable) and blur edges (undesirable) 93

94 3x3 Smoothing Linear Filters box filter weighted average the center is the most important and other pixels are inversely weighted as a function of their distance from the center of the mask 94

95 General form : smoothing mask Filter of size mxn (m and n odd) a g ( x, y) = b w(s, t ) f ( x + s, y + t ) s = a t = b a b w(s, t ) s = a t = b summation of all coefficient of the mask 95

96 Example 96

97 Example a). original image 5x5 pixel b). - f). results of smoothing with square averaging filter masks of size n = 3, 5, 9, 15 and 35, respectively. Note: big mask is used to eliminate small objects from an image. the size of the mask establishes the relative size of the objects that will be blended with the background. ٩٧

98 Example original image result after smoothing with 15x15 averaging mask result of thresholding we can see that the result after smoothing and thresholding, the remainders are the largest and brightest objects in the image. 98

99 Order-Statistics Filters (Nonlinear Filters) The response is based on ordering (ranking) the pixels contained in the image area encompassed by the filter example median filter : R = median{zk k = 1,2,,n x n} max filter : R = max{zk k = 1,2,,n x n} min filter : R = min{zk k = 1,2,,n x n} note: n x n is the size of the mask Median example: (1,2,2,2,15,2,2,25,1) rank to:( 1,15,2,2,2,2,2,25,1) Median=2 99

100 Median Filters Replaces the value of a pixel by the median of the gray levels in the neighborhood of that pixel (the original value of the pixel is included in the computation of the median) Quite popular because for certain types of random noise (impulse impulse noise salt and pepper noise) noise, they provide excellent noisenoise-reduction capabilities, capabilities with considering less blurring than linear smoothing filters of similar size. 1

101 Median Filters Forces the points with distinct gray levels to be more like their neighbors. Isolated clusters of pixels that are light or dark with respect to their neighbors, and whose area is less than n2/2 (one-half the filter area), are eliminated by an n x n median filter. Eliminated = forced to have the value equal the median intensity of the neighbors. Larger clusters are affected considerably less 11

102 Example : Median Filters 12

103 Sharpening Spatial Filters To highlight fine details in an image or to enhance detail that has been blurred, either in error or as a natural effect of a particular method of image acquisition. Blurring can be done in spatial domain by pixel averaging in a neighborhood, since averaging is analogous to integration, thus, we can guess that the sharpening must be accomplished by spatial differentiation. 13

104 Derivative operator The strength of the response of a derivative operator is proportional to the degree of discontinuity of the image at the point at which the operator is applied. Thus, image differentiation enhances edges and other discontinuities (noise) 14

105 First-order derivative a basic definition of the first-order derivative of a one-dimensional function f(x) is the difference f = f ( x + 1) f ( x) x 15

106 Second-order derivative similarly, we define the second-order derivative of a one-dimensional function f(x) is the difference f = f ( x + 1 ) + f ( x 1 ) 2 f ( x ) 2 x 2 16

107 Derivative operator 17

108 First and Second-order derivative of f(x,y) When we consider an image function of two variables, f(x,y), at which time we will dealing with partial derivatives along the two spatial axes. Gradient operator Laplacian operator (linear operator) f ( x, y) f ( x, y) f ( x, y) f = = + x y x y f ( x, y) f ( x, y) f = x y

109 Discrete Form of Laplacian from f = f ( x + 1, y) + f ( x 1, y) 2 f ( x, y) 2 x 2 f = f ( x, y + 1) + f ( x, y 1) 2 f ( x, y) 2 y 2 yield, f = [ f ( x + 1, y) + f ( x 1, y) 2 + f ( x, y + 1) + f ( x, y 1) 4 f ( x, y)] 19

110 Result Laplacian mask 11

111 Laplacian mask implemented an extension of diagonal neighbors 111

112 Other implementations of Laplacian masks give the same result, but we have to keep in mind that when combining (add / subtract) a Laplacian-filtered image with another image. 112

113 Effect of Laplacian Operator As it is a derivative operator, It highlights gray-level discontinuities in an image Tends to produce images that have Grayish edge lines and other discontinuities, all superimposed on a dark, featureless background. ١١٣

114 Correct the effect of featureless background Easily by adding the original and Laplacian image. Be careful with the Laplacian filter used f ( x, y) 2 f ( x, y) g ( x, y) = 2 f ( x, y ) + f ( x, y) if the center coefficient of the Laplacian mask is negative if the center coefficient of the Laplacian mask is positive 114

115 115

116 Example a). image of the North pole of the moon b). Laplacian-filtered image with c). Laplacian image scaled for display purposes d). image enhanced by addition with original image ١١٦

117 Mask of Laplacian + addition To simply the computation, we can create a mask which do both operations, Laplacian Filter and Addition the original image. g ( x, y) = f ( x, y) [ f ( x + 1, y) + f ( x 1, y) + f ( x, y + 1) + f ( x, y 1) 4 f ( x, y)] = 5 f ( x, y) [ f ( x + 1, y) + f ( x 1, y) + f ( x, y + 1) + f ( x, y 1)]

118 Example ١١٨

119 Unsharp Masking and High-Boost Filtering fs ( x, y) = f ( x, y) f ( x, y) sharpened image = original image blurred image This operation is known as unsharp masking where fs(x, y) denotes the sharpened image obtained by unsharp masking, and f(x, y) is a blurred version of f(x, y). 119

120 High-boost filtering A slight further generalization of unsharp masking is called high-boost filtering. A high-boost filtered image, fhb (x,y) is defined at any point (x, y) as: where A 1. 12

121 High-boost filtering If we use Laplacian filter to create sharpen image fs(x,y) with addition of original image f ( x, y) f ( x, y) fs ( x, y) = 2 f ( x, y) + f ( x, y) 2 121

122 High-boost filtering yields if the center coefficient of the Laplacian mask is negative Af ( x, y) 2 f ( x, y) fhb ( x, y) = 2 Af ( x, y) + f ( x, y) if the center coefficient of the Laplacian mask is positive 122

123 High-boost Masks A 1 if A = 1, it becomes standard Laplacian sharpening 123

124 Example One of the principal applications of boost filtering is when the input image is darker than desired. By varying the boost coefficient, it generally is possible to obtain an overall increase in average gray level of the image, thus helping to brighten the final result. 124

125 Example 125

126 f Gx x f = = f G y y Gradient Operator first derivatives are implemented using the magnitude of the gradient. gradient f = mag ( f ) = [G + G ] 2 x f 2 f = + x y 2 2 y commonly approx. 2 f G x + G y the magnitude becomes nonlinear 126

127 Gradient Mask simplest approximation, 2x2 Gx = ( z8 z5 ) f = [G + G ] 2 x 2 y 1 and 2 z1 z2 z3 z4 z5 z6 z7 z8 z9 G y = ( z6 z5 ) = [( z8 z5 ) + ( z6 z5 ) ] f z8 z5 + z6 z5 127

128 Gradient Mask here z1 z2 z3 z4 z5 z6 z7 z8 z9 Roberts cross-gradient operators, 2x2 Gx = ( z9 z5 ) f = [G + G ] 2 x 2 y 1 and 2 G y = ( z8 z6 ) = [( z9 z5 ) + ( z8 z6 ) ] f z9 z5 + z8 z6 128

129 Gradient Mask Sobel operators, 3x3 z1 z2 z3 z4 z5 z6 z7 z8 z9 Gx = ( z7 + 2 z8 + z9 ) ( z1 + 2 z2 + z3 ) G y = ( z3 + 2 z6 + z9 ) ( z1 + 2 z4 + z7 ) f Gx + G y 129

130 Note the summation of coefficients in all masks equals, indicating that they would give a response of in an area of constant gray level. 13

131 Example 131

132 Example of Combining Spatial Enhancement Methods want to sharpen the original image and bring out more skeletal detail. problems: narrow dynamic range of gray level and high noise content makes the image difficult to enhance ١٣٢

133 Example of Combining Spatial Enhancement Methods solve : 1. Laplacian to highlight fine detail 2. gradient to enhance prominent edges 3. gray-level transformation to increase the dynamic range of gray levels 133

134 134

135 135

EELE 5310: Digital Image Processing. Lecture 2 Ch. 3. Eng. Ruba A. Salamah. iugaza.edu

EELE 5310: Digital Image Processing. Lecture 2 Ch. 3. Eng. Ruba A. Salamah. iugaza.edu EELE 5310: Digital Image Processing Lecture 2 Ch. 3 Eng. Ruba A. Salamah Rsalamah @ iugaza.edu 1 Image Enhancement in the Spatial Domain 2 Lecture Reading 3.1 Background 3.2 Some Basic Gray Level Transformations

More information

Lecture 4 Image Enhancement in Spatial Domain

Lecture 4 Image Enhancement in Spatial Domain Digital Image Processing Lecture 4 Image Enhancement in Spatial Domain Fall 2010 2 domains Spatial Domain : (image plane) Techniques are based on direct manipulation of pixels in an image Frequency Domain

More information

Chapter 3: Intensity Transformations and Spatial Filtering

Chapter 3: Intensity Transformations and Spatial Filtering Chapter 3: Intensity Transformations and Spatial Filtering 3.1 Background 3.2 Some basic intensity transformation functions 3.3 Histogram processing 3.4 Fundamentals of spatial filtering 3.5 Smoothing

More information

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN CHAPTER 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN CHAPTER 3: IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN Principal objective: to process an image so that the result is more suitable than the original image

More information

EEM 463 Introduction to Image Processing. Week 3: Intensity Transformations

EEM 463 Introduction to Image Processing. Week 3: Intensity Transformations EEM 463 Introduction to Image Processing Week 3: Intensity Transformations Fall 2013 Instructor: Hatice Çınar Akakın, Ph.D. haticecinarakakin@anadolu.edu.tr Anadolu University Enhancement Domains Spatial

More information

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing Lecture 4 Digital Image Enhancement 1. Principle of image enhancement 2. Spatial domain transformation Basic intensity it tranfomation ti Histogram processing Principle Objective of Enhancement Image enhancement

More information

UNIT - 5 IMAGE ENHANCEMENT IN SPATIAL DOMAIN

UNIT - 5 IMAGE ENHANCEMENT IN SPATIAL DOMAIN UNIT - 5 IMAGE ENHANCEMENT IN SPATIAL DOMAIN Spatial domain methods Spatial domain refers to the image plane itself, and approaches in this category are based on direct manipulation of pixels in an image.

More information

Intensity Transformation and Spatial Filtering

Intensity Transformation and Spatial Filtering Intensity Transformation and Spatial Filtering Outline of the Lecture Introduction. Intensity Transformation Functions. Piecewise-Linear Transformation Functions. Introduction Definition: Image enhancement

More information

Digital Image Processing, 2nd ed. Digital Image Processing, 2nd ed. The principal objective of enhancement

Digital Image Processing, 2nd ed. Digital Image Processing, 2nd ed. The principal objective of enhancement Chapter 3 Image Enhancement in the Spatial Domain The principal objective of enhancement to process an image so that the result is more suitable than the original image for a specific application. Enhancement

More information

IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN

IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN 1 Image Enhancement in the Spatial Domain 3 IMAGE ENHANCEMENT IN THE SPATIAL DOMAIN Unit structure : 3.0 Objectives 3.1 Introduction 3.2 Basic Grey Level Transform 3.3 Identity Transform Function 3.4 Image

More information

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT. Vivekananda Collegee of Engineering & Technology Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT Dept. Prepared by Harivinod N Assistant Professor, of Computer Science and Engineering,

More information

Intensity Transformations and Spatial Filtering

Intensity Transformations and Spatial Filtering 77 Chapter 3 Intensity Transformations and Spatial Filtering Spatial domain refers to the image plane itself, and image processing methods in this category are based on direct manipulation of pixels in

More information

Introduction to Digital Image Processing

Introduction to Digital Image Processing Fall 2005 Image Enhancement in the Spatial Domain: Histograms, Arithmetic/Logic Operators, Basics of Spatial Filtering, Smoothing Spatial Filters Tuesday, February 7 2006, Overview (1): Before We Begin

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Jen-Hui Chuang Department of Computer Science National Chiao Tung University 2 3 Image Enhancement in the Spatial Domain 3.1 Background 3.4 Enhancement Using Arithmetic/Logic Operations

More information

Digital Image Analysis and Processing

Digital Image Analysis and Processing Digital Image Analysis and Processing CPE 0907544 Image Enhancement Part I Intensity Transformation Chapter 3 Sections: 3.1 3.3 Dr. Iyad Jafar Outline What is Image Enhancement? Background Intensity Transformation

More information

Filtering and Enhancing Images

Filtering and Enhancing Images KECE471 Computer Vision Filtering and Enhancing Images Chang-Su Kim Chapter 5, Computer Vision by Shapiro and Stockman Note: Some figures and contents in the lecture notes of Dr. Stockman are used partly.

More information

Image Enhancement: To improve the quality of images

Image Enhancement: To improve the quality of images Image Enhancement: To improve the quality of images Examples: Noise reduction (to improve SNR or subjective quality) Change contrast, brightness, color etc. Image smoothing Image sharpening Modify image

More information

Digital Image Processing. Image Enhancement in the Spatial Domain (Chapter 4)

Digital Image Processing. Image Enhancement in the Spatial Domain (Chapter 4) Digital Image Processing Image Enhancement in the Spatial Domain (Chapter 4) Objective The principal objective o enhancement is to process an images so that the result is more suitable than the original

More information

Image Enhancement in Spatial Domain (Chapter 3)

Image Enhancement in Spatial Domain (Chapter 3) Image Enhancement in Spatial Domain (Chapter 3) Yun Q. Shi shi@njit.edu Fall 11 Mask/Neighborhood Processing ECE643 2 1 Point Processing ECE643 3 Image Negatives S = (L 1) - r (3.2-1) Point processing

More information

In this lecture. Background. Background. Background. PAM3012 Digital Image Processing for Radiographers

In this lecture. Background. Background. Background. PAM3012 Digital Image Processing for Radiographers PAM3012 Digital Image Processing for Radiographers Image Enhancement in the Spatial Domain (Part I) In this lecture Image Enhancement Introduction to spatial domain Information Greyscale transformations

More information

Chapter 3 Image Enhancement in the Spatial Domain

Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain Yinghua He School o Computer Science and Technology Tianjin University Image enhancement approaches Spatial domain image plane itsel Spatial domain methods

More information

Lecture 4: Spatial Domain Transformations

Lecture 4: Spatial Domain Transformations # Lecture 4: Spatial Domain Transformations Saad J Bedros sbedros@umn.edu Reminder 2 nd Quiz on the manipulator Part is this Fri, April 7 205, :5 AM to :0 PM Open Book, Open Notes, Focus on the material

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Lecture # 6 Image Enhancement in Spatial Domain- II ALI JAVED Lecturer SOFTWARE ENGINEERING DEPARTMENT U.E.T TAXILA Email:: ali.javed@uettaxila.edu.pk Office Room #:: 7 Local/

More information

Selected Topics in Computer. Image Enhancement Part I Intensity Transformation

Selected Topics in Computer. Image Enhancement Part I Intensity Transformation Selected Topics in Computer Engineering (0907779) Image Enhancement Part I Intensity Transformation Chapter 3 Dr. Iyad Jafar Outline What is Image Enhancement? Background Intensity Transformation Functions

More information

Introduction to Digital Image Processing

Introduction to Digital Image Processing Introduction to Digital Image Processing Ranga Rodrigo June 9, 29 Outline Contents Introduction 2 Point Operations 2 Histogram Processing 5 Introduction We can process images either in spatial domain or

More information

1.Some Basic Gray Level Transformations

1.Some Basic Gray Level Transformations 1.Some Basic Gray Level Transformations We begin the study of image enhancement techniques by discussing gray-level transformation functions.these are among the simplest of all image enhancement techniques.the

More information

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava

Image Enhancement in Spatial Domain. By Dr. Rajeev Srivastava Image Enhancement in Spatial Domain By Dr. Rajeev Srivastava CONTENTS Image Enhancement in Spatial Domain Spatial Domain Methods 1. Point Processing Functions A. Gray Level Transformation functions for

More information

Chapter - 2 : IMAGE ENHANCEMENT

Chapter - 2 : IMAGE ENHANCEMENT Chapter - : IMAGE ENHANCEMENT The principal objective of enhancement technique is to process a given image so that the result is more suitable than the original image for a specific application Image Enhancement

More information

EE795: Computer Vision and Intelligent Systems

EE795: Computer Vision and Intelligent Systems EE795: Computer Vision and Intelligent Systems Spring 2012 TTh 17:30-18:45 WRI C225 Lecture 04 130131 http://www.ee.unlv.edu/~b1morris/ecg795/ 2 Outline Review Histogram Equalization Image Filtering Linear

More information

Sampling and Reconstruction

Sampling and Reconstruction Sampling and Reconstruction Sampling and Reconstruction Sampling and Spatial Resolution Spatial Aliasing Problem: Spatial aliasing is insufficient sampling of data along the space axis, which occurs because

More information

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space

Outlines. Medical Image Processing Using Transforms. 4. Transform in image space Medical Image Processing Using Transforms Hongmei Zhu, Ph.D Department of Mathematics & Statistics York University hmzhu@yorku.ca Outlines Image Quality Gray value transforms Histogram processing Transforms

More information

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering Digital Image Processing Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture - 21 Image Enhancement Frequency Domain Processing

More information

Point operation Spatial operation Transform operation Pseudocoloring

Point operation Spatial operation Transform operation Pseudocoloring Image Enhancement Introduction Enhancement by point processing Simple intensity transformation Histogram processing Spatial filtering Smoothing filters Sharpening filters Enhancement in the frequency domain

More information

(Refer Slide Time: 0:38)

(Refer Slide Time: 0:38) Digital Image Processing. Professor P. K. Biswas. Department of Electronics and Electrical Communication Engineering. Indian Institute of Technology, Kharagpur. Lecture-37. Histogram Implementation-II.

More information

SYDE 575: Introduction to Image Processing

SYDE 575: Introduction to Image Processing SYDE 575: Introduction to Image Processing Image Enhancement and Restoration in Spatial Domain Chapter 3 Spatial Filtering Recall 2D discrete convolution g[m, n] = f [ m, n] h[ m, n] = f [i, j ] h[ m i,

More information

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations It makes all the difference whether one sees darkness through the light or brightness through the shadows David Lindsay IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations Kalyan Kumar Barik

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Intensity Transformations (Point Processing) Christophoros Nikou cnikou@cs.uoi.gr University of Ioannina - Department of Computer Science and Engineering 2 Intensity Transformations

More information

Lecture 3 - Intensity transformation

Lecture 3 - Intensity transformation Computer Vision Lecture 3 - Intensity transformation Instructor: Ha Dai Duong duonghd@mta.edu.vn 22/09/2015 1 Today s class 1. Gray level transformations 2. Bit-plane slicing 3. Arithmetic/logic operators

More information

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong) Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong) References: [1] http://homepages.inf.ed.ac.uk/rbf/hipr2/index.htm [2] http://www.cs.wisc.edu/~dyer/cs540/notes/vision.html

More information

Basic relations between pixels (Chapter 2)

Basic relations between pixels (Chapter 2) Basic relations between pixels (Chapter 2) Lecture 3 Basic Relationships Between Pixels Definitions: f(x,y): digital image Pixels: q, p (p,q f) A subset of pixels of f(x,y): S A typology of relations:

More information

Digital Image Processing. Lecture # 3 Image Enhancement

Digital Image Processing. Lecture # 3 Image Enhancement Digital Image Processing Lecture # 3 Image Enhancement 1 Image Enhancement Image Enhancement 3 Image Enhancement 4 Image Enhancement Process an image so that the result is more suitable than the original

More information

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7) 5 Years Integrated M.Sc.(IT)(Semester - 7) 060010707 Digital Image Processing UNIT 1 Introduction to Image Processing Q: 1 Answer in short. 1. What is digital image? 1. Define pixel or picture element?

More information

An introduction to image enhancement in the spatial domain.

An introduction to image enhancement in the spatial domain. University of Antwerp Department of Mathematics and Computer Science An introduction to image enhancement in the spatial domain. Sven Maerivoet November, 17th 2000 Contents 1 Introduction 1 1.1 Spatial

More information

Image Processing Lecture 10

Image Processing Lecture 10 Image Restoration Image restoration attempts to reconstruct or recover an image that has been degraded by a degradation phenomenon. Thus, restoration techniques are oriented toward modeling the degradation

More information

Lecture No Image Enhancement in SpaPal Domain (course: Computer Vision)

Lecture No Image Enhancement in SpaPal Domain (course: Computer Vision) Lecture No. 26-30 Image Enhancement in SpaPal Domain (course: Computer Vision) e- mail: naeemmahoto@gmail.com Department of So9ware Engineering, Mehran UET Jamshoro, Sind, Pakistan Principle objecpves

More information

ECG782: Multidimensional Digital Signal Processing

ECG782: Multidimensional Digital Signal Processing Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu ECG782: Multidimensional Digital Signal Processing Spatial Domain Filtering http://www.ee.unlv.edu/~b1morris/ecg782/ 2 Outline Background Intensity

More information

Image Processing. Traitement d images. Yuliya Tarabalka Tel.

Image Processing. Traitement d images. Yuliya Tarabalka  Tel. Traitement d images Yuliya Tarabalka yuliya.tarabalka@hyperinet.eu yuliya.tarabalka@gipsa-lab.grenoble-inp.fr Tel. 04 76 82 62 68 Noise reduction Image restoration Restoration attempts to reconstruct an

More information

ECG782: Multidimensional Digital Signal Processing

ECG782: Multidimensional Digital Signal Processing Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu ECG782: Multidimensional Digital Signal Processing Spring 2014 TTh 14:30-15:45 CBC C313 Lecture 03 Image Processing Basics 13/01/28 http://www.ee.unlv.edu/~b1morris/ecg782/

More information

What will we learn? Neighborhood processing. Convolution and correlation. Neighborhood processing. Chapter 10 Neighborhood Processing

What will we learn? Neighborhood processing. Convolution and correlation. Neighborhood processing. Chapter 10 Neighborhood Processing What will we learn? Lecture Slides ME 4060 Machine Vision and Vision-based Control Chapter 10 Neighborhood Processing By Dr. Debao Zhou 1 What is neighborhood processing and how does it differ from point

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Intensity Transformations (Histogram Processing) Christophoros Nikou cnikou@cs.uoi.gr University of Ioannina - Department of Computer Science and Engineering 2 Contents Over the

More information

Motivation. Intensity Levels

Motivation. Intensity Levels Motivation Image Intensity and Point Operations Dr. Edmund Lam Department of Electrical and Electronic Engineering The University of Hong ong A digital image is a matrix of numbers, each corresponding

More information

IMAGING. Images are stored by capturing the binary data using some electronic devices (SENSORS)

IMAGING. Images are stored by capturing the binary data using some electronic devices (SENSORS) IMAGING Film photography Digital photography Images are stored by capturing the binary data using some electronic devices (SENSORS) Sensors: Charge Coupled Device (CCD) Photo multiplier tube (PMT) The

More information

Image Restoration and Reconstruction

Image Restoration and Reconstruction Image Restoration and Reconstruction Image restoration Objective process to improve an image, as opposed to the subjective process of image enhancement Enhancement uses heuristics to improve the image

More information

Digital Image Processing. Image Enhancement - Filtering

Digital Image Processing. Image Enhancement - Filtering Digital Image Processing Image Enhancement - Filtering Derivative Derivative is defined as a rate of change. Discrete Derivative Finite Distance Example Derivatives in 2-dimension Derivatives of Images

More information

Point Operations. Prof. George Wolberg Dept. of Computer Science City College of New York

Point Operations. Prof. George Wolberg Dept. of Computer Science City College of New York Point Operations Prof. George Wolberg Dept. of Computer Science City College of New York Objectives In this lecture we describe point operations commonly used in image processing: - Thresholding - Quantization

More information

Point and Spatial Processing

Point and Spatial Processing Filtering 1 Point and Spatial Processing Spatial Domain g(x,y) = T[ f(x,y) ] f(x,y) input image g(x,y) output image T is an operator on f Defined over some neighborhood of (x,y) can operate on a set of

More information

Point Operations and Spatial Filtering

Point Operations and Spatial Filtering Point Operations and Spatial Filtering Ranga Rodrigo November 3, 20 /02 Point Operations Histogram Processing 2 Spatial Filtering Smoothing Spatial Filters Sharpening Spatial Filters 3 Edge Detection Line

More information

EECS 556 Image Processing W 09. Image enhancement. Smoothing and noise removal Sharpening filters

EECS 556 Image Processing W 09. Image enhancement. Smoothing and noise removal Sharpening filters EECS 556 Image Processing W 09 Image enhancement Smoothing and noise removal Sharpening filters What is image processing? Image processing is the application of 2D signal processing methods to images Image

More information

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus

Image Processing. BITS Pilani. Dr Jagadish Nayak. Dubai Campus Image Processing BITS Pilani Dubai Campus Dr Jagadish Nayak Image Segmentation BITS Pilani Dubai Campus Fundamentals Let R be the entire spatial region occupied by an image Process that partitions R into

More information

Basic Algorithms for Digital Image Analysis: a course

Basic Algorithms for Digital Image Analysis: a course Institute of Informatics Eötvös Loránd University Budapest, Hungary Basic Algorithms for Digital Image Analysis: a course Dmitrij Csetverikov with help of Attila Lerch, Judit Verestóy, Zoltán Megyesi,

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Part 2: Image Enhancement in the Spatial Domain AASS Learning Systems Lab, Dep. Teknik Room T1209 (Fr, 11-12 o'clock) achim.lilienthal@oru.se Course Book Chapter 3 2011-04-06 Contents

More information

Lecture Image Enhancement and Spatial Filtering

Lecture Image Enhancement and Spatial Filtering Lecture Image Enhancement and Spatial Filtering Harvey Rhody Chester F. Carlson Center for Imaging Science Rochester Institute of Technology rhody@cis.rit.edu September 29, 2005 Abstract Applications of

More information

Chapter4 Image Enhancement

Chapter4 Image Enhancement Chapter4 Image Enhancement Preview 4.1 General introduction and Classification 4.2 Enhancement by Spatial Transforming(contrast enhancement) 4.3 Enhancement by Spatial Filtering (image smoothing) 4.4 Enhancement

More information

Image Restoration and Reconstruction

Image Restoration and Reconstruction Image Restoration and Reconstruction Image restoration Objective process to improve an image Recover an image by using a priori knowledge of degradation phenomenon Exemplified by removal of blur by deblurring

More information

Chapter 10: Image Segmentation. Office room : 841

Chapter 10: Image Segmentation.   Office room : 841 Chapter 10: Image Segmentation Lecturer: Jianbing Shen Email : shenjianbing@bit.edu.cn Office room : 841 http://cs.bit.edu.cn/shenjianbing cn/shenjianbing Contents Definition and methods classification

More information

Motivation. Gray Levels

Motivation. Gray Levels Motivation Image Intensity and Point Operations Dr. Edmund Lam Department of Electrical and Electronic Engineering The University of Hong ong A digital image is a matrix of numbers, each corresponding

More information

2D Image Processing INFORMATIK. Kaiserlautern University. DFKI Deutsches Forschungszentrum für Künstliche Intelligenz

2D Image Processing INFORMATIK. Kaiserlautern University.   DFKI Deutsches Forschungszentrum für Künstliche Intelligenz 2D Image Processing - Filtering Prof. Didier Stricker Kaiserlautern University http://ags.cs.uni-kl.de/ DFKI Deutsches Forschungszentrum für Künstliche Intelligenz http://av.dfki.de 1 What is image filtering?

More information

Classification of image operations. Image enhancement (GW-Ch. 3) Point operations. Neighbourhood operation

Classification of image operations. Image enhancement (GW-Ch. 3) Point operations. Neighbourhood operation Image enhancement (GW-Ch. 3) Classification of image operations Process of improving image quality so that the result is more suitable for a specific application. contrast stretching histogram processing

More information

Edge and local feature detection - 2. Importance of edge detection in computer vision

Edge and local feature detection - 2. Importance of edge detection in computer vision Edge and local feature detection Gradient based edge detection Edge detection by function fitting Second derivative edge detectors Edge linking and the construction of the chain graph Edge and local feature

More information

C2: Medical Image Processing Linwei Wang

C2: Medical Image Processing Linwei Wang C2: Medical Image Processing 4005-759 Linwei Wang Content Enhancement Improve visual quality of the image When the image is too dark, too light, or has low contrast Highlight certain features of the image

More information

INTENSITY TRANSFORMATION AND SPATIAL FILTERING

INTENSITY TRANSFORMATION AND SPATIAL FILTERING 1 INTENSITY TRANSFORMATION AND SPATIAL FILTERING Lecture 3 Image Domains 2 Spatial domain Refers to the image plane itself Image processing methods are based and directly applied to image pixels Transform

More information

Digital Image Processing. Image Enhancement (Point Processing)

Digital Image Processing. Image Enhancement (Point Processing) Digital Image Processing Image Enhancement (Point Processing) 2 Contents In this lecture we will look at image enhancement point processing techniques: What is point processing? Negative images Thresholding

More information

x' = c 1 x + c 2 y + c 3 xy + c 4 y' = c 5 x + c 6 y + c 7 xy + c 8

x' = c 1 x + c 2 y + c 3 xy + c 4 y' = c 5 x + c 6 y + c 7 xy + c 8 1. Explain about gray level interpolation. The distortion correction equations yield non integer values for x' and y'. Because the distorted image g is digital, its pixel values are defined only at integer

More information

Intensity Transformations. Digital Image Processing. What Is Image Enhancement? Contents. Image Enhancement Examples. Intensity Transformations

Intensity Transformations. Digital Image Processing. What Is Image Enhancement? Contents. Image Enhancement Examples. Intensity Transformations Digital Image Processing 2 Intensity Transformations Intensity Transformations (Point Processing) Christophoros Nikou cnikou@cs.uoi.gr It makes all the difference whether one sees darkness through the

More information

Islamic University of Gaza Faculty of Engineering Computer Engineering Department

Islamic University of Gaza Faculty of Engineering Computer Engineering Department Islamic University of Gaza Faculty of Engineering Computer Engineering Department EELE 5310: Digital Image Processing Spring 2011 Date: May 29, 2011 Time : 120 minutes Final Exam Student Name: Student

More information

Lecture 6: Edge Detection

Lecture 6: Edge Detection #1 Lecture 6: Edge Detection Saad J Bedros sbedros@umn.edu Review From Last Lecture Options for Image Representation Introduced the concept of different representation or transformation Fourier Transform

More information

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction

CoE4TN4 Image Processing. Chapter 5 Image Restoration and Reconstruction CoE4TN4 Image Processing Chapter 5 Image Restoration and Reconstruction Image Restoration Similar to image enhancement, the ultimate goal of restoration techniques is to improve an image Restoration: a

More information

Review for Exam I, EE552 2/2009

Review for Exam I, EE552 2/2009 Gonale & Woods Review or Eam I, EE55 /009 Elements o Visual Perception Image Formation in the Ee and relation to a photographic camera). Brightness Adaption and Discrimination. Light and the Electromagnetic

More information

Sharpening through spatial filtering

Sharpening through spatial filtering Sharpening through spatial filtering Stefano Ferrari Università degli Studi di Milano stefano.ferrari@unimi.it Methods for Image Processing academic year 2017 2018 Sharpening The term sharpening is referred

More information

Filtering Images. Contents

Filtering Images. Contents Image Processing and Data Visualization with MATLAB Filtering Images Hansrudi Noser June 8-9, 010 UZH, Multimedia and Robotics Summer School Noise Smoothing Filters Sigmoid Filters Gradient Filters Contents

More information

Segmentation algorithm for monochrome images generally are based on one of two basic properties of gray level values: discontinuity and similarity.

Segmentation algorithm for monochrome images generally are based on one of two basic properties of gray level values: discontinuity and similarity. Chapter - 3 : IMAGE SEGMENTATION Segmentation subdivides an image into its constituent s parts or objects. The level to which this subdivision is carried depends on the problem being solved. That means

More information

1.What is meant by image enhancement by point processing? Discuss any two methods in it.

1.What is meant by image enhancement by point processing? Discuss any two methods in it. 1.What is meant by image enhancement by point processing? Discuss any two methods in it. Basic Gray Level Transformations: The study of image enhancement techniques is done by discussing gray-level transformation

More information

Segmentation and Grouping

Segmentation and Grouping Segmentation and Grouping How and what do we see? Fundamental Problems ' Focus of attention, or grouping ' What subsets of pixels do we consider as possible objects? ' All connected subsets? ' Representation

More information

Unit - I Computer vision Fundamentals

Unit - I Computer vision Fundamentals Unit - I Computer vision Fundamentals It is an area which concentrates on mimicking human vision systems. As a scientific discipline, computer vision is concerned with the theory behind artificial systems

More information

Lecture: Edge Detection

Lecture: Edge Detection CMPUT 299 Winter 2007 Lecture: Edge Detection Irene Cheng Overview. What is a pixel in an image? 2. How does Photoshop, + human assistance, detect an edge in a picture/photograph? 3. Behind Photoshop -

More information

Digital Image Fundamentals

Digital Image Fundamentals Digital Image Fundamentals Image Quality Objective/ subjective Machine/human beings Mathematical and Probabilistic/ human intuition and perception 6 Structure of the Human Eye photoreceptor cells 75~50

More information

JNTUWORLD. 4. Prove that the average value of laplacian of the equation 2 h = ((r2 σ 2 )/σ 4 ))exp( r 2 /2σ 2 ) is zero. [16]

JNTUWORLD. 4. Prove that the average value of laplacian of the equation 2 h = ((r2 σ 2 )/σ 4 ))exp( r 2 /2σ 2 ) is zero. [16] Code No: 07A70401 R07 Set No. 2 1. (a) What are the basic properties of frequency domain with respect to the image processing. (b) Define the terms: i. Impulse function of strength a ii. Impulse function

More information

Biomedical Image Analysis. Spatial Filtering

Biomedical Image Analysis. Spatial Filtering Biomedical Image Analysis Contents: Spatial Filtering The mechanics of Spatial Filtering Smoothing and sharpening filters BMIA 15 V. Roth & P. Cattin 1 The Mechanics of Spatial Filtering Spatial filter:

More information

Lecture 7: Most Common Edge Detectors

Lecture 7: Most Common Edge Detectors #1 Lecture 7: Most Common Edge Detectors Saad Bedros sbedros@umn.edu Edge Detection Goal: Identify sudden changes (discontinuities) in an image Intuitively, most semantic and shape information from the

More information

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

CS4442/9542b Artificial Intelligence II prof. Olga Veksler CS4442/9542b Artificial Intelligence II prof. Olga Veksler Lecture 8 Computer Vision Introduction, Filtering Some slides from: D. Jacobs, D. Lowe, S. Seitz, A.Efros, X. Li, R. Fergus, J. Hayes, S. Lazebnik,

More information

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations I

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations I T H E U N I V E R S I T Y of T E X A S H E A L T H S C I E N C E C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S Image Operations I For students of HI 5323

More information

Linear Operations Using Masks

Linear Operations Using Masks Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result at that pixel Expressing linear operations on neighborhoods

More information

CS4442/9542b Artificial Intelligence II prof. Olga Veksler

CS4442/9542b Artificial Intelligence II prof. Olga Veksler CS4442/9542b Artificial Intelligence II prof. Olga Veksler Lecture 2 Computer Vision Introduction, Filtering Some slides from: D. Jacobs, D. Lowe, S. Seitz, A.Efros, X. Li, R. Fergus, J. Hayes, S. Lazebnik,

More information

Digital Image Processing, 3rd ed. Gonzalez & Woods

Digital Image Processing, 3rd ed. Gonzalez & Woods Last time: Affine transforms (linear spatial transforms) [ x y 1 ]=[ v w 1 ] xy t 11 t 12 0 t 21 t 22 0 t 31 t 32 1 IMTRANSFORM Apply 2-D spatial transformation to image. B = IMTRANSFORM(A,TFORM) transforms

More information

Digital Image Procesing

Digital Image Procesing Digital Image Procesing Spatial Filters in Image Processing DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL PROCESSING IMPERIAL COLLEGE LONDON Spatial filters for image enhancement Spatial filters

More information

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University Achim J. Lilienthal Mobile Robotics and Olfaction Lab, Room T1227, Mo, 11-12 o'clock AASS, Örebro University (please drop me an email in advance) achim.lilienthal@oru.se 1 4. Admin Course Plan Rafael C.

More information

Digital Image Processing. Lecture 6

Digital Image Processing. Lecture 6 Digital Image Processing Lecture 6 (Enhancement in the Frequency domain) Bu-Ali Sina University Computer Engineering Dep. Fall 2016 Image Enhancement In The Frequency Domain Outline Jean Baptiste Joseph

More information

CHAPTER 6 DETECTION OF MASS USING NOVEL SEGMENTATION, GLCM AND NEURAL NETWORKS

CHAPTER 6 DETECTION OF MASS USING NOVEL SEGMENTATION, GLCM AND NEURAL NETWORKS 130 CHAPTER 6 DETECTION OF MASS USING NOVEL SEGMENTATION, GLCM AND NEURAL NETWORKS A mass is defined as a space-occupying lesion seen in more than one projection and it is described by its shapes and margin

More information

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University CS334: Digital Imaging and Multimedia Edges and Contours Ahmed Elgammal Dept. of Computer Science Rutgers University Outlines What makes an edge? Gradient-based edge detection Edge Operators From Edges

More information

Lecture 4: Image Processing

Lecture 4: Image Processing Lecture 4: Image Processing Definitions Many graphics techniques that operate only on images Image processing: operations that take images as input, produce images as output In its most general form, an

More information