DREAM PLAN IDEA IMPLEMENTATION 1. 2 3 Introduction to Image Processing Dr. Kourosh Kiani

Slides:



Advertisements
Similar presentations
Types of Image Enhancements in spatial domain
Advertisements

Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
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
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Digital Image Processing
Course Website: Digital Image Processing Image Enhancement (Histogram Processing)
ECE 472/572 - Digital Image Processing
Image Enhancement in the Spatial Domain
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
Intensity Transformations
Digital Image Processing
Digital Image Processing
Chapter 4: Image Enhancement
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
Lecture 4 Digital Image Enhancement
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.
Digital Image Processing
Digital Image Processing
Lecture 2. Intensity Transformation and Spatial Filtering
Chapter 3 Image Enhancement in the Spatial Domain.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
Spectral contrast enhancement
Lecture 4 Digital Image Enhancement
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
Digital Image Processing (DIP)
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
Lecture Three Chapters Two and three Photo slides from Digital Image Processing, Gonzalez and Woods, Copyright 2002.
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing Contrast Enhancement: Part I
CS6825: Point Processing Contents – not complete What is point processing? What is point processing? Altering/TRANSFORMING the image at a pixel only.
1. General Image Operations Three type of image operations 1.Point operations 2.Geometric operations 3.Spatial operations.
DIGITAL IMAGE PROCESSING
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
Intensity Transformations or Translation in Spatial Domain.
Digital Image Processing Lecture 3: Image Display & Enhancement March 2, 2005 Prof. Charlene Tsai.
Digital Image Processing Lecture9: Intensity (Gray-level) Transformation Functions using MATLAB.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods  Process an image so that the result will be more suitable.
CIS 601 – 04 Image ENHANCEMENT in the SPATIAL DOMAIN Longin Jan Latecki Based on Slides by Dr. Rolf Lakaemper.
Digital Image Processing EEE415 Lecture 3
Prepared by: Hanan Hardan
Digital Image Processing CSC331 Image Enhancement 1.
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.
CS-565 Computer Vision Nazar Khan Lecture 8.
Digital Image Processing
Image Enhancement.
Intensity Transformations and Spatial Filtering
CIS 601 – 03 Image ENHANCEMENT SPATIAL DOMAIN Longin Jan Latecki
Digital Image Processing
Image Enhancement in the Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Processing
Lecture Four Chapter Three
Grey Level Enhancement
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
IT523 Digital Image Processing
IT523 Digital Image Processing
Image Enhancement in the Spatial Domain
Presentation transcript:

DREAM PLAN IDEA IMPLEMENTATION 1

2

3 Introduction to Image Processing Dr. Kourosh Kiani Web: Present to: Amirkabir University of Technology (Tehran Polytechnic) & Semnan University

Lecture 03 4

POINT OPERATIONS

Point Operations Overview Point operations are zero-memory operations where a given gray level x  [0,L] is mapped to another gray level y  [0,L] according to a transformation L L x y L=255: for grayscale images

POINT OPERATIONS  A point operation can be defined as a mapping function: where v stands for gray values.  M(v) takes any value v in the source image into v new in the destination image.  Simplest case - Linear Mapping: M(v) v p q p’p’ q’q’

L L x y No influence on visual quality at all

Digital Negative L x 0 L

THE NEGATIVE MAPPING v M(v) 255

THE NEGATIVE MAPPING

POINT OPERATIONS AND THE HISTOGRAM  Given a point operation:  M(v a ) takes any value v a in image A and maps it into v b in image B.  Requirement: the mapping M is a non descending function (M -1 exists).  In this case, the area under H a between 0 and v a is equal to the area under H b between 0 and v b

v v HaHa HbHb M(v) v The area under H a between 0 and v a is equal to the area under H b between 0 and v b =M(v a )

 Q: Is it possible to obtain H b directly from H a and M(v)?  A: Since M(v) is monotonic, C a (v a )=C b (v b ) therefore: v v CaCa CbCb M(v) v

Contrast Stretching L x 0 ab yaya ybyb

Clipping L x 0 ab

Range Compression c=100 L x 0

Thresholding transformations are particularly useful for segmentation in which we want to isolate an object of interest from a background s = r <= threshold r > threshold Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Original Image x y Image f (x, y) Enhanced Image x y Image f (x, y) s = 0.0 r <= threshold 1.0 r > threshold

If r max and r min are the maximum and minimum gray level of the input image and L is the total gray levels of output image The transformation function for contrast stretching will be

One can take an image with a narrow contrast range and expand it to cover the entire range of black to white in a process known as contrast stretching.

There are many different kinds of grey level transformations Three of the most common are shown here  Linear  Negative/Identity  Logarithmic  Log/Inverse log  Power law  n th power/n th root

The general form of the log transformation is s = c * log(1 + r) The log transformation maps a narrow range of low input grey level values into a wider range of output values The inverse log transformation performs the opposite transformation

Log functions are particularly useful when the input grey level values may have an extremely large range of values In the following example the Fourier transform of an image is put through a log transform to reveal more detail s = log(1 + r)

Original Image x y Image f (x, y) Enhanced Image x y Image f (x, y) s = log(1 + r) We usually set c to 1 Grey levels must be in the range [0.0, 1.0]

Power law transformations have the following form s = c * r γ Map a narrow range of dark input values into a wider range of output values or vice versa Varying γ gives a whole family of curves

We usually set c to 1 Grey levels must be in the range [0.0, 1.0] Original Image x y Image f (x, y) Enhanced Image x y Image f (x, y) s = r γ

γ = 0.6

γ = 0.4

γ = 0.3

The images to the right show a MR image of a fractured human spine Different curves highlight different detail s = r 0.6 s = r 0.4 s = r 0.3

γ = 5.0

An aerial photo of a runway is shown This time power law transforms are used to darken the image Different curves highlight different detail s = r 3.0 s = r 4.0 s = r 5.0

Many of you might be familiar with gamma correction of computer monitors Problem is that display devices do not respond linearly to different intensities Can be corrected using a log transform

 New Image pixel = (Original Image pixel ) - γ New Image pixel = (Original Image pixel )^-1.5 Original imageNew Image Gamma correction= 1.5

 Here is an example at different gammas. L 0, gamma= 1 L 0 2.2, gamma = 1/(2.2) L 0 1/2.2, gamma = 2.2 This is the best gamma

Rather than using a well defined mathematical function we can use arbitrary user-defined transforms The images below show a contrast stretching linear transform to add contrast to a poor quality image

Highlights a specific range of grey levels  Similar to thresholding  Other levels can be suppressed or maintained  Useful for highlighting features in an image

Often by isolating particular bits of the pixel values in an image we can highlight interesting aspects of that image  Higher-order bits usually contain most of the significant visual information  Lower-order bits contain subtle details

[ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]

Reconstructed image using only bit planes 8 and 7 Reconstructed image using only bit planes 8, 7 and 6 Reconstructed image using only bit planes 7, 6 and 5

 Simple gray level transformations  Image negatives  Log transformations  Power-law transformations  Contrast stretching  Gray-level slicing  Bit-plane slicing  Histogram processing  Histogram equalization  Histogram matching (specification)  Arithmetic/logic operations  Image averaging

Questions? Discussion? Suggestions ?

63