Lecture #5. Point transformations (cont.) Histogram transformations. Intro to neighborhoods and spatial filtering

Size: px
Start display at page:

Download "Lecture #5. Point transformations (cont.) Histogram transformations. Intro to neighborhoods and spatial filtering"

Transcription

1 Lecture #5 Point transformations (cont.) Histogram transformations Equalization Specification Local vs. global operations Intro to neighborhoods and spatial filtering

2 Brightness & Contrast 2002 R. C. Gonzalez & R. E. Woods

3 Point Ops via Functional Mappings Image: I, point operator J J = [] I Pixel: Input I(r,c) function, f Output J(r,c) The transformation of image I into image J is accomplished by replacing each input intensity, g, with a specific output intensity, k, at every location (r,c) where I(r,c) = g. If I and then ( r, c) = g f ( g) = k J( r, c) = k. The rule that associates k with g is usually specified with a function, f, so that f (g) = k.

4 Point Ops via Functional Mappings One-band Image J ( r, c) = f ( I( r, c) ), for all pixels locations ( r, c). Three-band Image J( r, c, b) = f ( I( r, c, b ), J( r, c, b) = f ( I( r, c, b) ), b for b = 1,2,3 or and all ( r, c).

5 Point Ops via Functional Mappings One-band Image Either all 3 bands are mapped through the same function, f, or ( r, c) = f ( I( r, c) ), J for all pixels locations ( r, c). Three-band Image J( r, c, b) = f ( I( r, c, b ), J( r, c, b) = f ( I( r, c, b) ), for b b = 1,2,3 or and all ( r, c). each band is mapped through a separate function, f b.

6 Point Ops via Functional Mappings A look-up table (LUT) implements a functional mapping. If k = for g f ( g), = 0,,255, andif k takes on values in{ 0,,255}, To remap a 1-band image, I, to J : then the LUT that implements f is a 256x1 array whose (g +1) th value is k = f (g). J = LUT I ( +1)

7 Point Ops via Functional Mappings If I is 3-band, then a) each band is mapped separately using the same LUT for each band or b) each band is mapped using different LUTs one for each band. J = LUT( I + 1), (:,:, b) = LUT ( I( :,:, b) + 1) for b = 1,2,3. a) J or b) b

8 Point Ops via Functional Mappings output value input value E.g.: index input value output

9 Point Ops via Functional Mappings input a pixel with this value cell index contents output is mapped to this value

10 How to Generate a Look-Up Table For example: Let a = 2. Let x { 0,,255} e ( x; a) = a( x 127) / 32 Or in Matlab: a = 2; x = 0:255; LUT = 255./ (1+exp(-a*(x-127)/32)); This is just one example.

11 Point Processes: Increase Brightness I = R + G + B 3 J k ( r, c) ( r, c) g, if I k( r, c) + g < 256, if I k( r, c) + g > 255 { 1, 2 } is the bandindex. I k + = 255 g 0 and k, g transform mapping

12 Point Processes: Decrease Brightness J k ( r, c) g 0 and k, 3 if I k( r, c) g 0 ( r, c) g, if I k( r, c) { 1, 2 } is the bandindex. 0, < = I k transform mapping 255-g

13 Point Processes: Increase Contrast Let J k Tk ( r, c) = a[ I k ( r, c) 127] + 127, where a > , if Tk ( r, c) < 0, ( r, c) = Tk ( r, c), if 0 Tk ( r, c) 255, 255, if T ( r, c) > 255. k { 1, 2, 3} k transform mapping

14 Point Processes: Decrease Contrast T k ( r, c) where = a 0 [ I ( r, c) 127] k a < 1.0 and + 127, k { 1,2,3 } transform mapping

15 Point Processes: Contrast Stretch Let Then, J m m J I = min = min [ I( r, c) ], M I = max[ I( r, c) ], [ J( r, c) ], M = max[ J( r, c) ]. I r, c m M m ( ) ( ) ( ) I r, c = M m + m. J J I J I J M J m J m I 127 M I 255 transform mapping

16 Information Loss from Contrast Adjustment orig lo-c hi-c histograms

17 Information Loss from Contrast Adjustment orig orig lo-c lo-c hi-c lo-c abbreviations: original low-contrast high-contrast restored difference rest diff difference between original and restored low-contrast orig hi-c hi-c rest diff difference between original and restored high-contrast

18 Point Processes: Increased Gamma J ( r, c) ( r, c) 1/ 255 I = for > transform mapping

19 Point Processes: Decreased Gamma J ( r, c) ( r, c) 1/ 255 I = for < m M transform mapping

20 Gamma Correction: Effect on Histogram

21 The Probability Density Function of an Image pdf [lower case] Let A = 255 g = 0 Note that since h I k R rows by C h I ( g + 1). k ( g +1) (the k th color band of image I ) with value g, A is the number of pixels in I. I k columns then is the number A = That is if R C. of I pixels in Then, 1 pi ( g+ 1) = h ( 1) k I g+ k A is the graylevel probability density function of I. is This is the probability that an arbitrary pixel from I k has value g. k

22 The Probability Density Function of an Image p band (g+1) is the fraction of pixels in (a specific band of) an image that have intensity value g. p band (g+1) is the probability that a pixel randomly selected from the given band has intensity value g. Whereas the sum of the histogram h band (g+1) over all g from 1 to 256 is equal to the number of pixels in the image, the sum of p band (g+1) over all g is 1. p band is the normalized histogram of the band.

23 The Probability Distribution Function of an Image Let q = [q 1 q 2 q 3 ] = I(r,c) be the value of a randomly selected pixel from I. Let g be a specific gray level. The probability that q k g is given by PDF [upper case] P I k ( g + ) = p ( + 1) = h ( + 1) ( + 1) g g Ik 1 = 0 1 I = k Ik 255 = 0 A = 0 hi + k = 0 g h ( ), 1 where h Ik ( +1) is the histogram of the kth band of I. This is the probability that any given pixel from I k has value less than or equal to g.

24 The Probability Distribution Function of an Image Let q = [q 1 q 2 q 3 ] = I(r,c) be the value of a randomly selected pixel from I. Let g be a specific gray level. The probability that q k g is given by Also called CDF for Cumulative Distribution Function. P I k ( g + ) = p ( + 1) = h ( + 1) ( + 1) g g Ik 1 = 0 1 I = k Ik 255 = 0 A = 0 hi + k = 0 g h ( ), 1 where h Ik ( +1) is the histogram of the kth band of I. This is the probability that any given pixel from I k has value less than or equal to g.

25 The Probability Distribution Function of an Image A.k.a. Cumulative Distribution Function. P band (g+1) is the fraction of pixels in (a specific band of) an image that have intensity values less than or equal to g. P band (g+1) is the probability that a pixel randomly selected from the given band has an intensity value less than or equal to g. P band (g+1) is the cumulative (or running) sum of p band (g+1) from 0 through g inclusive. P band (1) = p band (1) and P band (256) = 1; P band (g+1) is nondecreasing. Note: the Probability Distribution Function (PDF, capital letters) and the Cumulative Distribution Function (CDF) are exactly the same things. Both PDF and CDF will refer to it. However, pdf (small letters) is the density function.

26 Intensity Transform Requirements a) A monotonically increasing intensity transformation prevents an intensity reversal which could cause artifacts in the transformed image. b) A strictly monotonically increasing intensity transformation guarantees that the inverse transformation (from s=t(r) back to r) will be 1:1 preventing ambiguities 2002 R. C. Gonzalez & R. E. Woods

27 Uniform Histogram Transform These are pdf s. Gonzalez uses PDF instead of pdf. s = T( r)= L 1 r 0 ( ) p r w ( )dw L is the number of gray levels. Cumulative Distribution Function (CDF) 2002 R. C. Gonzalez & R. E. Woods

28 Histogram Equalization Example Note: this same 3-bit (8 gray level) 64x64 pixel image will be used for several examples 2002 R. C. Gonzalez & R. E. Woods

29 Histogram Equalization Example pdf Computed PDF 0 ( ) s 0 = T( r 0 )= ( 8 1) p r r j = 7 p r ( r 0 )= 7( 0.19)= 1.33 j 1=0 s 1 = T( r 1 )= ( 8 1) p r ( r j ) = 7 p r ( r 0 )+ 7 p r ( r 1 )= 7( 0.19)+ 7( 0.25)= = 3.08 s 2 = T( r 2 )= 8 1 j =0 2 ( ) = 7( 0.19)+ 7( 0.25)+ 7( 0.21)= = 4.55 ( ) p r r j j =0 s 3 = 5.67 s 4 = 6.23 s 5 = 6.65 s 6 = 6.86 s 7 = 7.00 Discrete CDF (transformation) Input Output Discrete Output R. C. Gonzalez & R. E. Woods

30 Histogram Equalization Resulting histogram when trying to achieve uniform* equalized histogram s k = T( r k )= L 1 ( ) ( ) p r r j k j =0 Must round off to nearest integer value since only L integer levels in output *Resulting histogram is usually not uniform due to discrete nature of transform. In this case we only have five output levels R. C. Gonzalez & R. E. Woods

31 Histogram Equalization dark light Low contrast high contrast 2002 R. C. Gonzalez & R. E. Woods

32 Histogram Equalization s k = T( r k )= L 1 ( ) ( ) p r r j k j =0

33 Histogram Specification G(z) would be a straight line for equalization. 3. Compute CDF v q for desired histogram 1. Compute pdf (histogram) for input image 2. Compute CDF s k for this PDF Inverting a discrete function is far easier than inverting a continuous function 2002 R. C. Gonzalez & R. E. Woods 4. Match CDF s for each s k to create mapping table by inverting G

34 Histogram Specification Original pdf Specified pdf CDF of specified pdf Actual transformed image pdf

35 Histogram Specification Example 1. Compute the PDF of the image to be transformed 0 ( ) s 0 = T( r 0 )= ( 8 1) p r r j = 7 p r ( r 0 )= 7( 0.19)= 1.33 j 1=0 s 1 = T( r 1 )= ( 8 1) p r ( r j ) = 7 p r ( r 0 )+ 7 p r ( r 1 )= 7( 0.19)+ 7( 0.25)= = 3.08 s 2 = T( r 2 )= 8 1 j =0 2 ( ) = 7( 0.19)+ 7( 0.25)+ 7( 0.21)= = 4.55 ( ) p r r j j =0 s 3 = 5.67 s 4 = 6.23 s 5 = 6.65 s 6 = 6.86 s 7 = 7.00 Output CDF (not discrete) Discrete CDF of input histogram Input Output Discrete Output Rounded off 2002 R. C. Gonzalez & R. E. Woods

36 Histogram Specification Example 2. Compute the PDF for the specified histogram 0 ( ) G( z 0 )= ( 8 1) p z z j = 7 p z ( z 0 )= 70 ( )= 0 j 1=0 G( z 1 )= ( 8 1) p z ( z j ) = 7 p z ( z 0 )+ 7 p z ( z 1 )= 70 ( )+ 70 ( )= 0 j =0 2 ( ) G( z 2 )= ( 8 1) p z z j = 70 ( )+ 70 ( )+ 70 ( )= 0 j =0 G( z 3 )= 1.05 G( z 4 )= 2.45 G( z 5 )= 4.55 G( z 6 )= 5.95 G( z 7 )= 7.00 Discrete CDF of desired histogram Input Output Discrete Output Rounded off 2002 R. C. Gonzalez & R. E. Woods

37 Histogram Specification Example 3. Match the PDFs to get the transformation Discrete CDF of input histogram Input CDF Discrete CDF Discrete CDF desired Pixel CDF Discrete CDF Discrete CDF of input histogram Input CDF input CDF desired New Value 0 1 (1.33) 1 (1.05) (3.08) 2 (2.45) (4.55) 5 (4.55) (5.67) 6 (5.95) (6.23) 6 (5.95) (6.65) 7 (7.00) (6.86) 7 (7.00) (7.00) 7 (7.00) 7

38 Histogram Specification Example 4. Put mapping in a LUT Input Transformed Value 0 --> > > > > > > > 7

39 MATLAB: Histogram Equalization HISTOGRAM EQUALIZATION IN MATLAB >> f=imread( fig10.10(a).jpg ); % load in figure 3.15(a) >> imshow(f) % show image in a window >> figure, imhist(f) % show histogram in a new window % This histogram is not normalized. >> ylim( auto ) % set histogram tick marks and % axis limits automatically >> g=histeq(f,256); % Create histogram equalized image % you can also do this with % the cumsum function >> hnorm=imhist(f)./numel(f); % compute normalized histogram >> figure, imshow(g) % show this figure in a new window >> figure, imhist(g) % generate a histogram of % the equalized image >> ylim( auto ) % set limits again SEE GWE, Section for a discussion of histogram specification using MATLAB

40 MATLAB: Useful Transformations THRESHOLDING >> f=imread( fig10.10(a).jpg ); % load in an image >> g=(f>100)*255 % show figure in a new window (f>100) evaluates to 1 (true) if the pixel is >100, or 0 (false) if the pixel is 100 Multiplying by 255 is necessary to have a uint8 255 level image. ROTATION >> f=imread( fig10.10(a).jpg ); % load in an image >> g=imrotate(f,angle, method ); % rotate it by angle bilinear %Supports methods: nearest, bilinear, bicubic

41 MATLAB: Getting Picture Coordinates INPUT CURSOR VALUES %(Very useful for specifying reference points in an image) >> [x,y]=ginput %Displays the graph window, displays a cross hair. Will input %coordinate pairs from the graph window until you type return. %Position cursor using mouse and click to input each coordinate pair. x = y = >> [x,y]=ginput(n) Will input n coordinate pairs until you press return

42 Examples of Point Processing - gamma - brightness original + brightness + gamma histogram mod - contrast original + contrast histogram EQ

43 Histogram

44 Histogram Equalization

45 Histogram Specification Manually specified histogram h (1) CDF s k =G(z q ) corresponding to h (2) Inverse transform z=g -1 (s k ) for intensity mapping Resulting histogram

46 Local Histogram Operations

47 Local Histogram Operations g( x, y)= ( ) if m S xy k 0 m g AND k 1 G Sxy k 2 G ( ) otherwise Ei f x, y f x, y compare to global mean m G and standard deviation G

48 Spatial Neighborhoods

49 Spatial Filtering Let I and J be images such that J = T [I]. T [ ] represents a transformation, such that, J ( r, c) = T[]( I r, c) = f I( u, v) u { r s,..., r,... r + s}, v { c d,..., c,... c + d} ({ }). That is, the value of the transformed image, J, at pixel location (r,c) is a function of the values of the original image, I, in a 2s+1 2d+1 rectangular neighborhood centered on pixel location (r,c).

50 Moving Windows The value, J(r,c) = T[I](r,c), is a function of a rectangular neighborhood centered on pixel location (r,c) in I. There is a different neighborhood for each pixel location, but if the dimensions of the neighbor-hood are the same for each location, then trans-form T is sometimes called a moving window transform.

51 Spatial Filtering 2002 R. C. Gonzalez & R. E. Woods

52 Moving-Window Transformations Neutral Buoyancy Facility at NASA Johnson Space Center We ll take a section of this image to demonstrate the MWT photo: R.A.Peters II, 1999

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

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

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

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

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image Histograms h(r k ) = n k Histogram: number of times intensity level rk appears in the image p(r k )= n k /NM normalized histogram also a probability of occurence 1 Histogram of Image Intensities Create

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

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

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

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

Lecture #3. MATLAB image processing (cont.) Histograms Mathematics of image processing Geometric transforms Image Warping.

Lecture #3. MATLAB image processing (cont.) Histograms Mathematics of image processing Geometric transforms Image Warping. Lecture #3 MATLAB image processing (cont.) vectorization Histograms Mathematics of image processing Geometric transforms Image Warping Pixel Indexing in MATLAB For loops in Matlab are inefficient, whereas

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

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

EECS490: Digital Image Processing. Lecture #21

EECS490: Digital Image Processing. Lecture #21 Lecture #21 Hough transform Graph searching Area based segmentation Thresholding, automatic thresholding Local thresholding Region segmentation Hough Transform Points (x i,y i ) and (x j,y j ) Define a

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

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

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

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

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

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

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

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

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

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

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

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

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

Brightness and geometric transformations

Brightness and geometric transformations Brightness and geometric transformations Václav Hlaváč Czech Technical University in Prague Czech Institute of Informatics, Robotics and Cybernetics 166 36 Prague 6, Jugoslávských partyzánů 1580/3, Czech

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

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

EECS490: Digital Image Processing. Lecture #22

EECS490: Digital Image Processing. Lecture #22 Lecture #22 Gold Standard project images Otsu thresholding Local thresholding Region segmentation Watershed segmentation Frequency-domain techniques Project Images 1 Project Images 2 Project Images 3 Project

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

Chapter 2 - Fundamentals. Comunicação Visual Interactiva

Chapter 2 - Fundamentals. Comunicação Visual Interactiva Chapter - Fundamentals Comunicação Visual Interactiva Structure of the human eye (1) CVI Structure of the human eye () Celular structure of the retina. On the right we can see one cone between two groups

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

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 Enhancement 3-1

Image Enhancement 3-1 Image Enhancement The goal of image enhancement is to improve the usefulness of an image for a given task, such as providing a more subjectively pleasing image for human viewing. In image enhancement,

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

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

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

Image Enhancement. Digital Image Processing, Pratt Chapter 10 (pages ) Part 1: pixel-based operations

Image Enhancement. Digital Image Processing, Pratt Chapter 10 (pages ) Part 1: pixel-based operations Image Enhancement Digital Image Processing, Pratt Chapter 10 (pages 243-261) Part 1: pixel-based operations Image Processing Algorithms Spatial domain Operations are performed in the image domain Image

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

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

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

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

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 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

Chapter 18. Geometric Operations

Chapter 18. Geometric Operations Chapter 18 Geometric Operations To this point, the image processing operations have computed the gray value (digital count) of the output image pixel based on the gray values of one or more input pixels;

More information

Texture. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors

Texture. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors. Frequency Descriptors Texture The most fundamental question is: How can we measure texture, i.e., how can we quantitatively distinguish between different textures? Of course it is not enough to look at the intensity of individual

More information

What is an Image? Image Acquisition. Image Processing - Lesson 2. An image is a projection of a 3D scene into a 2D projection plane.

What is an Image? Image Acquisition. Image Processing - Lesson 2. An image is a projection of a 3D scene into a 2D projection plane. mage Processing - Lesson 2 mage Acquisition mage Characteristics mage Acquisition mage Digitization Sampling Quantization mage Histogram What is an mage? An image is a projection of a 3D scene into a 2D

More information

Digital image processing

Digital image processing Digital image processing Image enhancement algorithms: grey scale transformations Any digital image can be represented mathematically in matrix form. The number of lines in the matrix is the number of

More information

EC-433 Digital Image Processing

EC-433 Digital Image Processing EC-433 Digital Image Processing Lecture 4 Digital Image Fundamentals Dr. Arslan Shaukat Acknowledgement: Lecture slides material from Dr. Rehan Hafiz, Gonzalez and Woods Interpolation Required in 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

Probability Models.S4 Simulating Random Variables

Probability Models.S4 Simulating Random Variables Operations Research Models and Methods Paul A. Jensen and Jonathan F. Bard Probability Models.S4 Simulating Random Variables In the fashion of the last several sections, we will often create probability

More information

3.3 Histogram Processing(page 142) h(r k )=n k. p(r k )=1

3.3 Histogram Processing(page 142) h(r k )=n k. p(r k )=1 Image enhancement in the spatial domain(3.3) SLIDE 1/18 Histogram 3.3 Histogram Processing(page 142) h(r k )=n k r k : kthgraylevel n k : numberofpixelsofgraylevelr k Normalization Discrete PDF MN: totalnumberofpixels

More information

Comparative Study of Linear and Non-linear Contrast Enhancement Techniques

Comparative Study of Linear and Non-linear Contrast Enhancement Techniques Comparative Study of Linear and Non-linear Contrast Kalpit R. Chandpa #1, Ashwini M. Jani #2, Ghanshyam I. Prajapati #3 # Department of Computer Science and Information Technology Shri S ad Vidya Mandal

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

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

Image Acquisition + Histograms

Image Acquisition + Histograms Image Processing - Lesson 1 Image Acquisition + Histograms Image Characteristics Image Acquisition Image Digitization Sampling Quantization Histograms Histogram Equalization What is an Image? An image

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

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

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

EELE 5310: Digital Image Processing. Ch. 3. Eng. Ruba A. Salamah. iugaza.edu EELE 531: Digital Image Processing 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

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

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions Others -- Noise Removal Techniques -- Edge Detection Techniques -- Geometric Operations -- Color Image Processing -- Color Spaces Xiaojun Qi Noise Model The principal sources of noise in digital 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

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

VC 16/17 TP5 Single Pixel Manipulation

VC 16/17 TP5 Single Pixel Manipulation VC 16/17 TP5 Single Pixel Manipulation Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos Hélder Filipe Pinto de Oliveira Outline Dynamic Range Manipulation

More information

CS1114 Assignment 5, Part 1

CS1114 Assignment 5, Part 1 CS4 Assignment 5, Part out: Friday, March 27, 2009. due: Friday, April 3, 2009, 5PM. This assignment covers three topics in two parts: interpolation and image transformations (Part ), and feature-based

More information

Lecture 9: Hough Transform and Thresholding base Segmentation

Lecture 9: Hough Transform and Thresholding base Segmentation #1 Lecture 9: Hough Transform and Thresholding base Segmentation Saad Bedros sbedros@umn.edu Hough Transform Robust method to find a shape in an image Shape can be described in parametric form A voting

More information

Broad field that includes low-level operations as well as complex high-level algorithms

Broad field that includes low-level operations as well as complex high-level algorithms Image processing About Broad field that includes low-level operations as well as complex high-level algorithms Low-level image processing Computer vision Computational photography Several procedures and

More information

Automated image enhancement using power law transformations

Automated image enhancement using power law transformations Sādhanā Vol. 37, Part 6, December 212, pp. 739 745. c Indian Academy of Sciences Automated image enhancement using power law transformations SPVIMAL 1 and P K THIRUVIKRAMAN 2, 1 Birla Institute of Technology

More information

Image Processing: Final Exam November 10, :30 10:30

Image Processing: Final Exam November 10, :30 10:30 Image Processing: Final Exam November 10, 2017-8:30 10:30 Student name: Student number: Put your name and student number on all of the papers you hand in (if you take out the staple). There are always

More information

Lecture 2 Image Processing and Filtering

Lecture 2 Image Processing and Filtering Lecture 2 Image Processing and Filtering UW CSE vision faculty What s on our plate today? Image formation Image sampling and quantization Image interpolation Domain transformations Affine image transformations

More information

Digital Image Processing Chapter 11: Image Description and Representation

Digital Image Processing Chapter 11: Image Description and Representation Digital Image Processing Chapter 11: Image Description and Representation Image Representation and Description? Objective: To represent and describe information embedded in an image in other forms that

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

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

Decision Support Risk handout. Simulating Spreadsheet models

Decision Support Risk handout. Simulating Spreadsheet models Decision Support Models @ Risk handout Simulating Spreadsheet models using @RISK 1. Step 1 1.1. Open Excel and @RISK enabling any macros if prompted 1.2. There are four on line help options available.

More information

An Optimal Gamma Correction Based Image Contrast Enhancement Using DWT-SVD

An Optimal Gamma Correction Based Image Contrast Enhancement Using DWT-SVD An Optimal Gamma Correction Based Image Contrast Enhancement Using DWT-SVD G. Padma Priya 1, T. Venkateswarlu 2 Department of ECE 1,2, SV University College of Engineering 1,2 Email: padmapriyagt@gmail.com

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

Semi-Automatic Global Contrast Enhancement

Semi-Automatic Global Contrast Enhancement Semi-Automatic Global Contrast Enhancement S. Somorjeet Singh Department of Computer Science Manipur University, Canchipur ABSTRACT Since local contrast enhancement is not sufficient for a detailed visibility

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

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

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking Feature descriptors Alain Pagani Prof. Didier Stricker Computer Vision: Object and People Tracking 1 Overview Previous lectures: Feature extraction Today: Gradiant/edge Points (Kanade-Tomasi + Harris)

More information

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier Computer Vision 2 SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung Computer Vision 2 Dr. Benjamin Guthier 3. HIGH DYNAMIC RANGE Computer Vision 2 Dr. Benjamin Guthier Pixel Value Content of this

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

Midterm Examination CS 534: Computational Photography

Midterm Examination CS 534: Computational Photography Midterm Examination CS 534: Computational Photography November 3, 2016 NAME: Problem Score Max Score 1 6 2 8 3 9 4 12 5 4 6 13 7 7 8 6 9 9 10 6 11 14 12 6 Total 100 1 of 8 1. [6] (a) [3] What camera setting(s)

More information

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation Lecture #13 Point (pixel) transformations Color modification Color slicing Device independent color Color balancing Neighborhood processing Smoothing Sharpening Color segmentation Color Transformations

More information

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu Image Processing CS 554 Computer Vision Pinar Duygulu Bilkent University Today Image Formation Point and Blob Processing Binary Image Processing Readings: Gonzalez & Woods, Ch. 3 Slides are adapted from

More information

Image restoration. Restoration: Enhancement:

Image restoration. Restoration: Enhancement: Image restoration Most images obtained by optical, electronic, or electro-optic means is likely to be degraded. The degradation can be due to camera misfocus, relative motion between camera and object,

More information

Image transformations. Prof. Noah Snavely CS Administrivia

Image transformations. Prof. Noah Snavely CS Administrivia Image transformations Prof. Noah Snavely CS1114 http://www.cs.cornell.edu/courses/cs1114/ Administrivia 2 Last time: Interpolation 3 Nearest neighbor interpolation 4 Bilinear interpolation 5 Bicubic interpolation

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

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

(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

Topic 4 Image Segmentation

Topic 4 Image Segmentation Topic 4 Image Segmentation What is Segmentation? Why? Segmentation important contributing factor to the success of an automated image analysis process What is Image Analysis: Processing images to derive

More information

Learning Objectives. Continuous Random Variables & The Normal Probability Distribution. Continuous Random Variable

Learning Objectives. Continuous Random Variables & The Normal Probability Distribution. Continuous Random Variable Learning Objectives Continuous Random Variables & The Normal Probability Distribution 1. Understand characteristics about continuous random variables and probability distributions 2. Understand the uniform

More information

Image Enhancement Using Fuzzy Morphology

Image Enhancement Using Fuzzy Morphology Image Enhancement Using Fuzzy Morphology Dillip Ranjan Nayak, Assistant Professor, Department of CSE, GCEK Bhwanipatna, Odissa, India Ashutosh Bhoi, Lecturer, Department of CSE, GCEK Bhawanipatna, Odissa,

More information

CS4733 Class Notes, Computer Vision

CS4733 Class Notes, Computer Vision CS4733 Class Notes, Computer Vision Sources for online computer vision tutorials and demos - http://www.dai.ed.ac.uk/hipr and Computer Vision resources online - http://www.dai.ed.ac.uk/cvonline Vision

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

Mosaics. Today s Readings

Mosaics. Today s Readings Mosaics VR Seattle: http://www.vrseattle.com/ Full screen panoramas (cubic): http://www.panoramas.dk/ Mars: http://www.panoramas.dk/fullscreen3/f2_mars97.html Today s Readings Szeliski and Shum paper (sections

More information

Local Features: Detection, Description & Matching

Local Features: Detection, Description & Matching Local Features: Detection, Description & Matching Lecture 08 Computer Vision Material Citations Dr George Stockman Professor Emeritus, Michigan State University Dr David Lowe Professor, University of British

More information

Ad Evaluation Report

Ad Evaluation Report Page 1 of 8 Ad Evaluation Report by Dr. Neal Krawetz Hacker Factor 30-Oct-2014 Version 1.2 Summary On 29-Oct-2014, Majority Strategies contacted Hacker Factor for a rapid picture evaluation. The picture

More information