CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu

Slides:



Advertisements
Similar presentations
Digital Image Processing
Advertisements

Image Processing Ch3: Intensity Transformation and spatial filters
Spatial Filtering (Chapter 3)
Image Processing Lecture 4
CS & CS Multimedia Processing Lecture 2. Intensity Transformation and Spatial Filtering Spring 2009.
Chapter 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
Digital Image Processing
Histogram Processing The histogram of a digital image with gray levels from 0 to L-1 is a discrete function h(rk)=nk, where: rk is the kth gray level nk.
Intensity Transformations
Digital Image Processing
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
Image Enhancement by Modifying Gray Scale of Individual Pixels
Digital Image Processing In The Name Of God Digital Image Processing Lecture3: Image enhancement M. Ghelich Oghli By: M. Ghelich Oghli
Digital Image Processing
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
6/9/2015Digital Image Processing1. 2 Example Histogram.
Digital Image Processing
Lecture 2. Intensity Transformation and Spatial Filtering
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 4 Digital Image Enhancement
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
 Image Enhancement in Spatial Domain.  Spatial domain process on images can be described as g(x, y) = T[f(x, y)] ◦ where f(x,y) is the input image,
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intensity Transformations or Translation in Spatial Domain.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
Digital Image Processing EEE415 Lecture 3
Image Enhancement in Spatial Domain Presented by : - Mr. Trushar Shah. ME/MC Department, U.V.Patel College of Engineering, Kherva.
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
Digital Image Processing Lecture 4: Image Enhancement: Point Processing January 13, 2004 Prof. Charlene Tsai.
Digital Image Processing Image Enhancement in Spatial Domain
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Spatial Filtering (Chapter 3) CS474/674 - Prof. Bebis.
Image Enhancement in the Spatial Domain.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Lecture Six Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, Copyright 2002.
IMAGE ENHANCEMENT TECHNIQUES
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Image Enhancement.
Intensity Transformations and Spatial Filtering
CIS 601 – 03 Image ENHANCEMENT SPATIAL DOMAIN Longin Jan Latecki
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Fundamentals of Image Processing A Seminar on By Alok K. Watve
Image Enhancement in the Spatial Domain
Image Enhancement in the
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
Image Enhancement Gray level transformation Linear transformation
Digital Image Processing
Histogram Probability distribution of the different grays in an image.
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Image Processing Ch3: Intensity Transformation and spatial filters
Chapter 3 Image Enhancement in the Spatial Domain
Histogram Equalization
Grey Level Enhancement
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Intensity Transformations and Spatial Filtering
IT523 Digital Image Processing
IT523 Digital Image Processing
The spatial domain processes discussed in this chapter are denoted by the expression
Image Enhancement in the Spatial Domain
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu Email: draicu@cs.depaul.edu Homepage: http://facweb.cs.depaul.edu/dstan School of CTI, DePaul University 12/3/2018 Daniela Stan - CSC381/481

Outline Chapter 3: Image Enhancement in the Spatial Domain Introduction (Section 3.1) Enhancement by point processing (Section 3.2): Image negatives Log transformations Power-law transformations Piecewise-linear transformations Histogram Processing (Section 3.3) Final Projects discussion 12/3/2018 Daniela Stan - CSC381/481

Introduction Image Enhancement procedures are techniques used to achieve a subjective improvement in image “quality” for a specific application (problem-oriented). Typical applications: noise removal geometric correction smoothing sharpening edge enhancement or extraction. Usually ad hoc procedures. Image Enhancement: in the Spatial Domain (pixel operators) the Frequency Domain (frequency filtering). 12/3/2018 Daniela Stan - CSC381/481

Spatial Domain Methods Procedures that operate directly on the aggregate/neighborhood of pixels composing an image A neighborhood about (x,y) is defined by using a square (or rectangular) subimage area centered at (x,y). 12/3/2018 Daniela Stan - CSC381/481

Spatial Domain Methods When the neighborhood is 1 x 1 then g depends only on the value of f at (x,y) and T becomes a gray-level transformation (also called an intensity or mapping) function: s=T(r) r,s: gray levels of f(x,y) and g(x,y) at any point (x,y) r denotes the pixel intensity before processing s denotes the pixel intensity after processing. These intensity transformations are also called point processing techniques. 12/3/2018 Daniela Stan - CSC381/481

Enhancement by Point Processing The following methods are based only on the intensity of single pixels. Image negatives Log transformations Power-law transformations Piecewise-Linear Transformation Functions: Contrast stretching Gray-level slicing Bit-plane slicing 12/3/2018 Daniela Stan - CSC381/481

Image Enhancement in the Spatial Domain Linear: Negative, Identity Logarithmic: Log, Inverse Log Power-Law: nth power, nth root 12/3/2018 Daniela Stan - CSC381/481

[0,L-1] the range of gray levels Image Negatives Are obtained by using the transformation function s=T(r). Function T reverses the order from black to white so that the intensity of the output image decreases as the intensity of the input increases. [0,L-1] the range of gray levels S= L-1-r 12/3/2018 Daniela Stan - CSC381/481

Image Enhancement in the Spatial Domain Medical applications: much easier to analyze the breast tissue in the negative image 12/3/2018 Daniela Stan - CSC381/481

Log Transformations s = c log(1+r) c: constant, r >=0 Compresses the dynamic range of images with large variations in pixel values 12/3/2018 Daniela Stan - CSC381/481

Piecewise-Linear Transformation Functions: Contrast Stretching To increase the dynamic range of the gray levels in the image being processed. 12/3/2018 Daniela Stan - CSC381/481

Contrast Stretching The locations of (r1,s1) and (r2,s2) control the shape of the transformation function. If r1= s1 and r2= s2 the transformation is a linear function and produces no changes. If r1=r2, s1=0 and s2=L-1, the transformation becomes a thresholding function that creates a binary image. 12/3/2018 Daniela Stan - CSC381/481

Image Enhancement in the Spatial Domain Contrast Stretching Thresholding 12/3/2018 Daniela Stan - CSC381/481

Contrast Stretching More on function shapes: Intermediate values of (r1,s1) and (r2,s2) produce various degrees of spread in the gray levels of the output image, thus affecting its contrast. Generally, r1≤r2 and s1≤s2 is assumed. 12/3/2018 Daniela Stan - CSC381/481

Image Enhancement in the Spatial Domain Low contrast image High contrast image 12/3/2018 Daniela Stan - CSC381/481

Spatial Domain Methods Mask processing or filtering: when the values of f in a predefined neighborhood of (x,y) determine the value of g at (x,y). Through the use of masks (or kernels, templates, or windows, or filters). More in the next lecture when we discuss about Basics of Spatial filtering (Section 3.5) 12/3/2018 Daniela Stan - CSC381/481

Example of the use of a mask Step 1: Move the window to the first location where we want to compute the average value and then select only pixels inside the window. Step 2: Compute the average value 4 6 7 1 9 2 5 3 4 1 9 2 3 7 Sub image p Step 3: Place the result at the pixel in the output image Original image 4.3 Step 4: Move the window to the next location and go to Step 2 Output image 12/3/2018 Daniela Stan - CSC381/481

Histogram Processing The histogram of a digital image with gray levels from 0 to L-1 is a discrete function h(rk)=nk, where: rk is the kth gray level nk is the # pixels in the image with that gray level n is the total number of pixels in the image k = 0, 1, 2, …, L-1 Normalized histogram: p(rk)=nk/n sum of all components = 1 To visualize the histogram of a digital image, we plot pr(rk) versus rk 12/3/2018 Daniela Stan - CSC381/481

Image Enhancement in the Spatial Domain The shape of the histogram of an image does provide useful info about the possibility for contrast enhancement. 12/3/2018 Daniela Stan - CSC381/481

Types of Histogram Processing Histogram equalization Histogram matching (specification) Local enhancement 12/3/2018 Daniela Stan - CSC381/481

Histogram Equalization As mentioned above, for gray levels that take on discrete values, we deal with probabilities: pr(rk)=nk/n, k=0,1,.., L-1 The plot of pr(rk) versus rk is called a histogram and the technique used for obtaining a uniform histogram is known as histogram equalization (or histogram linearization). 12/3/2018 Daniela Stan - CSC381/481

Histogram Equalization (HE) The technique used for obtaining a uniform histogram is known as histogram equalization (or histogram linearization). where pr(rk)=nk/n, k=0,1,.., L-1 Histogram equalization(HE) results are similar to contrast stretching but offer the advantage of full automation, since HE automatically determines a transformation function to produce a new image with a uniform histogram. 12/3/2018 Daniela Stan - CSC381/481

12/3/2018 Daniela Stan - CSC381/481

Local Enhancement When it is necessary to enhance details over smaller areas, then we need to devise transformation functions based on the gray-level distribution in the neighborhood of every pixel The procedure is: 1. Define a square (or rectangular) neighborhood and move the center of this area from pixel to pixel. 2. At each location, the histogram of the points in the neighborhood is computed and either a histogram equalization or histogram specification transformation function is obtained. 3. This function is finally used to map the gray level of the pixel centered in the neighborhood. The center is then moved to an adjacent pixel location and the procedure is repeated. 12/3/2018 Daniela Stan - CSC381/481