Point Processing When doing so you actually perform a special type of image processing known as point processing.

Slides:



Advertisements
Similar presentations
Laboratory of Image Processing Pier Luigi Mazzeo
Advertisements

Lecture 9 Grey Level & Colour Enhancement TK3813 Dr. Masri Ayob.
Image Display MATLAB functions for displaying image Bit Planes
Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Robust statistical method for background extraction in image segmentation Doug Keen March 29, 2001.
Image Processing Lecture 4
Chapter 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
Digital Image Processing Lecture11: Histogram Processing.
Topic 4 - Image Mapping - I DIGITAL IMAGING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Intensity Transformations (Chapter 3)
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.
Image Enhancement in the Spatial Domain
1 Chapter 4: Point Processing 4.1 Introduction Any image-processing operation transforms the gray values of the pixels. Image-processing operations may.
Image (and Video) Coding and Processing Lecture 5: Point Operations Wade Trappe.
Intensity Transformations
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
SCCS 4761 Point Processing Basic Image Processing Operations Arithmetic Operations Histograms.
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.
Digital Image Processing & Pattern Analysis (CSCE 563) Intensity Transformations Prof. Amr Goneid Department of Computer Science & Engineering The American.
Lecture 4 Digital Image Enhancement
Image enhancement in the spatial domain. Human vision for dummies Anatomy and physiology Wavelength Wavelength sensitivity.
ELE 488 Fall 2006 Image Processing and Transmission Generate and Display of Gray Scale images in Matlab 2.Histogram of Gray Scale Image 3.Point.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Face Recognition and Biometric Systems 2005/2006 Filters.
DREAM PLAN IDEA IMPLEMENTATION Introduction to Image Processing Dr. Kourosh Kiani
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.
CS443: Digital Imaging and Multimedia Point Operations on Digital Images Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring.
Digital Image Processing
Image 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.
 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,
© 2004 R. C. Gonzalez, R. E. Woods, and S. L. Eddins Digital Image Processing Using MATLAB ® Chapter 3 Intensity Transformations.
Image Processing Image Histogram Lecture
Digital Image Processing Lecture 4: Image Enhancement: Point Processing Prof. Charlene Tsai.
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intensity Transformations or Translation in Spatial Domain.
AdeptSight Image Processing Tools Lee Haney January 21, 2010.
CS654: Digital Image Analysis Lecture 18: Image Enhancement in Spatial Domain (Histogram)
Digital Image Processing Lecture9: Intensity (Gray-level) Transformation Functions using MATLAB.
Image Enhancement in the Spatial Domain (MATLAB)
CIS 601 – 04 Image ENHANCEMENT in the SPATIAL DOMAIN Longin Jan Latecki Based on Slides by Dr. Rolf Lakaemper.
02-Gray Scale Control TTF. A TTF tells us how an imaging device relates the gray level of the input to the gray level of the output. P L Luminance, L.
Notes Over 2.3 The Graph of a Function Finding the Domain and Range of a Function. 1.Use the graph of the function f to find the domain of f. 2.Find the.
Prepared by: Hanan Hardan
CH2. Point Processes Arithmetic Operation Histogram Equalization
Digital Image Processing
Image enhancement using MATLAB Digital Image Processing 2014 Fall NTU 1.
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
M ATLAB L ECTURE 2 Image Enhancement in the Spatial Domain (MATLAB)
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.
REMOTE SENSING Digital Image Processing Radiometric Enhancement Geometric Enhancement Reference: Chapters 4 and 5, Remote Sensing Digital Image Analysis.
Histogram Equalization
Discussion #29 – Images II
The Point Processing of Images
Image Enhancement in the Spatial Domain
Grey Level Enhancement
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Intensity Transform Contrast Stretching Y ← u0+γ*(Y-u)/s
The spatial domain processes discussed in this chapter are denoted by the expression
Image Enhancement in Spatial Domain: Point Processing
Presentation transcript:

Point Processing When doing so you actually perform a special type of image processing known as point processing.

Point processing Point processing is now defined as an operation which calculates the new value of a pixel in g(x, y) based on the value of the pixel in the same position in f (x, y) and some operation. When doing so you actually perform a special type of image processing known as point processing.

Point Processing linear Non-linear (Logarithm, Exponential, Gamma, etc.)

Gray-Level Mapping g(x, y) = f (x, y)+b NOTE: If b >0 the image becomes brighter and if b < 0 the image becomes darker.

exercise

Gray-Level Mapping

The contrast of an image g(x, y) = a * f (x, y) g(x, y) = a * f (x, y)+b The contrast of an image is changed by changing the slope of the graph If a >1 the contrast is increased and if a <1 the contrast is decreased.

Arithmetic operations on an image: multiplication and division

Complements Input imageoutput image MATLAB function

Non-linear Gray-Level Mapping Gamma Mapping Humans have a non-linear perception of contrast. A commonly used non-linear mapping is gamma mapping

Gamma Mapping Gamma-mapping curves for different gammas g(x, y) = f (x, y) γ Adjust the gamma L1 = imadjust(I,[ ], [ ],2); figure, imshow(L1) L2 = imadjust(I,[ ], [ ],.3); figure, imshow(L2)

Gamma Mapping If Vin = 120 is gamma mapped with γ = Initially, the pixel value is transformed into the interval [0, 1] by dividing with 255, g’(x,y) = 20/255 = The gamma mapping is performed v2 = = Finally, it is mapped back to the interval [0, 255] giving the result v out = / 255 = 47.

Logarithmic Mapping An alternative non-linear mapping is based on the logarithm operator. Each pixel is replaced by the logarithm of the pixel value.

Logarithmic Mapping the mapping is defined as g(x, y) = c * log(1+f (x, y)) where c is a scaling constant that ensures that the maximum output value is 255 It is calculated as c = 255 / log(1 +v max ) where v max is the maximum pixel value in the input image.

Logarithmic Mapping I = imread('pout.tif'); g=c*log(1+double(I)) gs=im2uint8(mat2gray(g)); Input imageOutput image Output Input

Exponential Mapping The exponential mapping uses a part of the exponential curve. It can be expressed as where k is a parameter that can be used to change of shape of the transformation curve and c is a scaling constant that ensures that the maximum output value is 255. where v max is the maximum pixel value in the input image. k is normally chosen as a number just above 1. g(x, y) = c *(k f (x,y) − 1)

MATLAB function > Im2 = imadjust(I,[],[],0.5); //adjusts gamma: exponential map of grays J = imadjust(I, [low_in; high_in], [low_out; high_out],gamma); Exponential Mapping

The Image Histogram “how can we tell if an image is too dark or too bright? “ Histogram equalization is based on non-linear gray- level mapping using a cumulative histogram.

The Image Histogram

Histogram stretching ini h = imhist(im, b): h: histogram, b: number of histogram bins

The Image Histogram Histogram stretching (Contrast stretching) Histogram Equalization

The Image Histogram (con’t) Given a grayscale image, its histogram consists of the histogram of its grey levels

Histogram stretching

The Image Histogram (con’t) MATLAB function

Histogram stretching 5 9

This function has the effect of stretching the grey levels 5-9 to grey levels 2-14 by following: i56789 j

Perform histogram stretching in Matlab Format  imadjust(im,[a,b],[c,d]) NOTE: images of type double, uint8 or uint16 the values of a, b, c, and d must be between 0 and 1 J = imadjust(I) J = imadjust(I,[low_in; high_in],[low_out; high_out]) J = imadjust(I,[low_in; high_in],[low_out; high_out],gamma)

Perform histogram stretching in Matlab >> t=imread('tire.tif'); >> th=imadjust(t,[],[],0.5); >> imshow(t),figure,imshow(th)

Example RGB1 = imread('football.jpg'); RGB2 = imadjust(RGB1,[.2.3 0;.6.7 1],[]); imshow(RGB1), figure, imshow(RGB2) Input imageOutput image

A piecewise linear stretching function pix=find(im >= a(i) & im < a(i+1)); out(pix)=(im(pix)-a(i))*(b(i+1)-b(i))/(a(i+1)- a(i))+b(i);

Histogram equalization The user input is required for histogram starching, and a better approach is provided by histogram equalization, which is an entirely automatic procedure.

Histogram equalization ini h = imhist(im, b): h: histogram, b: number of histogram bins

Histogram equalization /360

exercise 1.I = imread('tire.tif'); 2.[J,T] = histeq(I); 3.figure;imshow(I); 4.figure; imhist(I,64) 5.figure;imshow(J); 6.figure; imhist(J,64) 7.Plot(T);