M ATLAB L ECTURE 2 Image Enhancement in the Spatial Domain (MATLAB)

Slides:



Advertisements
Similar presentations
Types of Image Enhancements in spatial domain
Advertisements

M ATLAB L ECTURE 3 Histogram Processing. H ISTOGRAM E QUALIZATION The imhist function create a histogram that show the distribution of intensities in.
Laboratory of Image Processing Pier Luigi Mazzeo
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.
Image Processing Ch3: Intensity Transformation and spatial filters
Image Processing Lecture 4
Chapter 3 Image Enhancement in the Spatial Domain.
MATLAB Image Processing Toolbox. Introduction  Collection of functions (MATLAB files) that supports a wide range of image processing operations  Documentation.
Chapter - 2 IMAGE ENHANCEMENT
Digital Image Processing Lecture11: Histogram Processing.
Intensity Transformations (Chapter 3)
Digital Image Processing
ECE 472/572 - Digital Image Processing
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
SCCS 4761 Point Processing Basic Image Processing Operations Arithmetic Operations Histograms.
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
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Digital Image Processing
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.
Digital Image Processing
7.3 L OGARITHMIC F UNCTIONS Write equivalent forms for exponential and logarithmic functions. Write, evaluate, and graph logarithmic functions. Objectives.
Lecture 4 Digital Image Enhancement
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
© 2004 R. C. Gonzalez, R. E. Woods, and S. L. Eddins Digital Image Processing Using MATLAB ® Chapter 3 Intensity Transformations.
Dr. Z. R. Ghassabi Tehran shomal University Spring 2015 Digital Image Processing Session 3 1.
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
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.
Image Processing Image Histogram Lecture
M ATLAB L ECTURE 1 Basic Concepts of Digital Image Processing.
Digital Image Processing Lecture10: MATLAB Example – Utility M-functions for Intensity Transformations.
CIS 601 Image ENHANCEMENT in the SPATIAL DOMAIN Dr. Rolf Lakaemper.
Intensity Transformations or Translation in Spatial Domain.
Image Arithmetic Image arithmetic is the implementation of standard arithmetic operations, such as addition, subtraction, multiplication, and division,
Lecture Eight Matlab for spatial filtering and intro to DFTs Figures from Gonzalez and Woods, Digital Image Processing, Copyright 2002, Gonzalez, Woods,
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.
Digital Image Processing EEE415 Lecture 3
Prepared by: Hanan Hardan
Digital Image Processing CSC331 Image Enhancement 1.
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.
Digital Image Processing Image Enhancement in Spatial Domain
M ATLAB L ECTURE 3 Histogram Processing. H ISTOGRAM E QUALIZATION The imhist function create a histogram that show the distribution of intensities in.
Point Processing When doing so you actually perform a special type of image processing known as point processing.
Histogram Equalization
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Digital Image Processing
Image Enhancement.
Intensity Transformations and Spatial Filtering
2.1 – Represent Relations and Functions.
Image Enhancement in the Spatial Domain
Image Enhancement in the
Image Processing Ch3: Intensity Transformation and spatial filters
Image processing toolbox
Grey Level Enhancement
Intensity Transformations and Spatial Filtering
IT523 Digital Image Processing
Transformations of Functions
The spatial domain processes discussed in this chapter are denoted by the expression
Presentation transcript:

M ATLAB L ECTURE 2 Image Enhancement in the Spatial Domain (MATLAB)

I MAGE E NHANCEMENT IN THE S PATIAL D OMAIN

S PATIAL D OMAIN : B ACKGROUND g(x, y) = T [f(x, y)] f(x, y) : input image g(x, y) : output image T : an operator on f (Transformation Function)

I N M ATLAB : F UNCTION IMADJUST Adjust image intensity values or colormap Syntax : (in gray images) J = imadjust(I) maps the values in intensity image I to new values in J. This increases the contrast of the output image J. J = imadjust(I,[low_in high_in],[low_out high_out]) maps the values in intensity image I to new values in J such that values between low_in and high_in map to values between low_out and high_out.

F UNCTION I MADJUST J = imadjust(...,gamma) maps the values in intensity image I to new values in J, where gamma specifies the shape of the curve describing the relationship between the values in I and J.

F UNCTION IMADJUST ( CONT.) If gamma is less than 1, the mapping is weighted toward higher (brighter) output values. If gamma is greater than1, the mapping is weighted toward lower (darker) output values. If you omit the argument, gamma defaults to 1(linear mapping).

I MAGE A DJUST E XAMPLES ( MATLAB CODE ) Adjust a low-contrast grayscale image. I = imread('pout.tif'); J = imadjust(I); figure, imshow(I), figure, imshow(J)

I MAGE A DJUST E XAMPLES Adjust the grayscale image, specifying the contrast limits. K1 = imadjust(I,[ ],[.2.6]); figure, imshow(K1) K2 = imadjust(I,[ ],[]); figure, imshow(K2)

I MAGE A DJUST E XAMPLES Adjust the gamma L1 = imadjust(I,[ ], [ ],2); figure, imshow(L1) L2 = imadjust(I,[ ], [ ],.3); figure, imshow(L2)

N EGATIVE IMAGE Obtaining a negative image I = imread('pout.tif'); K1 =imadjust(I, [0 1], [1 0]); K2 = imcomplement(I); imshow(I), figure, imshow(K1), figure, imshow(K2)

STRETCHLIM E XAMPLE Contrast Stretching: I = imread('pout.tif'); J = imadjust(I,stretchlim(I),[]); imshow(I), figure, imshow(J)

L OGARITHMIC AND CONTRAST STRETCHING Logarithmic: g=c*log(1+double(f)) Contrast stretching : compress the input levels lower than m into a narrow range of dark levels in the output image; similarly, it compresses the values above m into a narrow band of light levels in the output.

L OGARITHMIC AND CONTRAST STRETCHING E XAMPLE I = imread('pout.tif'); g=c*log(1+double(I)) gs=im2uint8(mat2gray(g));

T HRESHOLDING E XAMPLE I = imread('pout.tif'); threshold = graythresh(I); BW = im2bw(I,threshold); imshow(BW);

I N M ATLAB : IM 2 BW Convert an image to a binary image, based on threshold Syntax: BW = im2bw(I,level) BW = im2bw(X,map,level) BW = im2bw(RGB,level)

I M 2 BW : E XAMPLE Im2bw: Example load trees BW = im2bw(X,map,0.4); Imview(X,map), imview(BW)