SlideShare a Scribd company logo
1 of 15
Download to read offline
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB
Ms . Jyoti kumari
Asst. Professor,
Department of Computer Science,
Acharya Institute of Graduate Studies,
jyothikumari@acharya.ac.in
Abstract
This study primarily centers on Image Processing. The principle objective of
enhancement techniques is to process an image so that the result is more suitable than
the original image for a specific application, the word specific is important, because it
establishes at the outset that the techniques are very much problem oriented. Thus, for
example, a method that is quite useful for enhancing x-ray image may not necessarily
be the best approach for enhancing pictures of Mars transmitted by a space probe.
Image enhancement is a challenging problem in digital image processing because of its
usefulness in all image processing applications. Some commonly used image
processing techniques are discussed in this study.These techniques are implemented in
MATLAB using image processing algorithms. The technique used for the study is two
dimensional matrix manipulations. Tools use for the study is MATLAB programming with
image processing toolbox.
Introduction
Image Processing
The field of digital image processing refers to processing digital images by means of a
digital computer. We can define image processing as a discipline in which both the
input and output of a process are images.
Image Enhancement
In image enhancement, the goal is to accentuate certain image features for subsequent
analysis or for image display. Examples include contrast and edge enhancement,
pseudo coloring, noise filtering, sharpening, and magnifying. Image enhancement is
useful in feature extraction, image analysis, and visual information display. The
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
enhancement process itself does not increase the inherent information content in the
data. It simply emphasizes certain specified image characteristics. Enhancement
algorithms are generally interactive and application-dependent.
Image enhancement techniques, such as contrast stretching, map each gray level into
another gray level by a predetermined transformation. An example is the histogram
equalization method, where the input gray levels are mapped so that the output gray
level distribution is uniform. This has been found to be a powerful method of
enhancement of low contrast image.
Image enhancement is among the simplest and most appealing areas of digital image
processing. Basically, the idea behind enhancement techniques is to bring out detail
that is obscured, or simply to highlight certain features of interest in an image. A familiar
example of enhancement is shown in Fig.1 in which when we increase the contrast of
an image and filter it to remove the noise "it looks better." It is important to keep in mind
that enhancement is a very subjective area of image processing. Improvement in quality
of these degraded images can be achieved by using application of enhancement
techniques.
Fig.1: Image enhancement
The greatest difficulty in image enhancement is quantifying the criteria for
enhancement; therefore a large number of image enhancement techniques are
empirical and require interactive procedure to obtain satisfactory result. However,
image enhancement remains a very important topic because of its usefulness is
virtually all image processing applications.
Image enhancement generally classified into two categories as follows
1. Point operations
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
2. Spatial operations.
Enhancement by point processing
We begin the study of image enhancement techniques by considering processing
methods that are based only on the intensity of single pixels.
Some simple Intensity Transformation
1. Contrast stretching (adjusting the brightness)
Low contrast images can result from poor illumination, lack of dynamic range in the
image sensor, or even wrong setting of a lens aperture during image acquisition. The
idea behind contrast stretching is to increase the dynamic range of the gray level in the
image being processed. (Contrast โ€“ local change in brightness)
2. Gray level slicing
Highlighting a specific range of gray levels in the image often is desired. There are
several ways of doing level slicing, but most of them of are variation of two basic
themes. One approach is to display a high value for all gray levels in the range of
interest and a low value for all other gray levels. The second approach based on the
transformation brightness the desired range of gray levels but preserves the
background and gray level tonalities in the image.
3. Image negatives
Negatives of digital images are useful in numerous applications, such as displaying
medical images and photographing a screen with monochrome positive film with the
idea of using the resulting negatives as normal slides. The negative of an image can be
obtained by subtraction of all intensity values from the maximum intensity value.
4. The Histogram Modelling
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
Histogram modelling has been found to be a powerful technique for image
enhancement.
Histogram
In an image processing context, the histogram of an image normally refers to a
histogram of the pixel intensity values. This histogram is a graph showing the number
of pixels in an image at each different intensity value found in that image. For an 8-
bitgrayscale image there are 256 different possible intensities, and so the histogram
will graphically display 256 numbers showing the distribution of pixels amongst those
grayscale values.
How to generate?
The operation is very simple. The image is scanned in a single pass and a running
count of the number of pixels found at each intensity value is kept. This is then used to
construct a suitable histogram.
Where it can be used?
The histogram is used and altered by many image enhancement operators. Two
operators which are closely connected to the histogram are contrast stretching and
histogram equalization. They are based on the assumption that an image has to use
the full intensity range to display the maximum contrast. Contrast stretching takes an
image in which the intensity values don't span the full intensity range and stretches its
values linearly.
Fig.2: The image
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
Histogram
The image has low contrast. However, if we look at its histogram, it shows that most of
the pixels values are clustered in a rather small area, whereas the top half of the
intensity values is used by only a few pixels. The idea of histogram equalization is that
the pixels should be distributed evenly over the whole intensity range, i.e. the aim is to
transform the image so that the output image has a flat histogram.
The image results from the histogram equalization and is the corresponding histogram.
Fig.3: The image
Histogram
0 50 100 150 200 250
0
200
400
600
800
1000
1200
1400
1600
Original
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
In this histogram the values are much more evenly distributed than in the original
histogram and the contrast in the image was essentially increased.
Generating and plotting image histogram in MATLAB.
The histogram of an digital image with L total possible intensity levels in the range[0,G]
is defined as the discrete function.
h(rk) = nk
Where rk is the kth
intensity level in the interval [0,G] and nk is the number of pixels in
the image whose intensity level is rk. The value of G is 255. MATLAB function for
dealing with image histogram is imhist, which has the following basic syntax.
h = imhist(f,b)
Where f- input image, h-is the histogram, b-is the number of bins(subdivision of
intensity scale) used for forming histogram. (If b is not included the default value is
256).
Histogram Equalization
The process of adjusting intensity values can be done automatically by the histeq
function. histeq performs histogram equalization, which involves transforming the
0 50 100 150 200 250
0
200
400
600
800
1000
1200
1400
1600
Histogram:Image adjust operation
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
intensity values so that the histogram of the output image approximately matches a
specified histogram
This example illustrates using histeq to adjust a grayscale image. The original image
has low contrast, with most values in the middle of the intensity range. histeq produces
an output image having values evenly distributed throughout the range.
I = imread(โ€˜file1.bmp');
J = histeq(I);
imshow(J)
Fig.4: The image after histogram equalization
Resultant histogram
Adaptive Histogram Equalization
As an alternative to using histeq, you can perform adaptive histogram equalization using
the adapthisteq function. While histeq works on the entire image, adapthisteq operates
0 50 100 150 200 250
0
200
400
600
800
1000
1200
1400
1600
Histogram:Image adjust operation
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
on small regions in the image, called tiles. Each tile's contrast is enhanced, so that the
histogram of the output region approximately matches a specified histogram. After
performing the equalization, adapthisteq combines neighboring tiles using bilinear
interpolation to eliminate artificially induced boundaries.
To avoid amplifying any noise that might be present in the image, you can use
adapthisteq optional parameters to limit the contrast, especially in homogeneous areas.
To illustrate, this example uses adapthisteq to adjust the contrast in a grayscale image.
The original image has low contrast, with most values in the middle of the intensity
range. adapthisteq produces an output image having values evenly distributed
throughout the range.
I = imread(โ€˜file1.bmpโ€™);
J = adapthisteq(I);
imshow(I);
figure, imshow(J)
Fig.5: The Image
Fig: Image after Adaptive Equalization with Its Histogram
MATLAB
Adapthisteq
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
MATLAB is a high-level technical computing language and interactive environment
whose basic data element is an array that does not require dimensioning. This allow
you to solve many technical computing problems, especially those with matrix and
vector formulations, in a fraction of the time it would take to write a program in a scalar
non interactive language such as C or FORTRAN. The name MATLAB stands for matrix
laboratory. MATLAB has evolved over a period of years with input from many users. In
university environments, it is the standard instructional tool for introductory and
advanced courses in mathematics, engineering, and science. In industry, MATLAB is
the tool of choice for high-productivity research, development, and analysis, MATLAB
features a family of add-on application-specific solutions called toolboxes. Very
important and most users of MATLAB, toolboxes allow you to learn and apply
specialized technology. Toolboxes are comprehensive collections of MATLAB functions
(M-files) that extend the MATLAB environment to solve particular classes of problems.
Areas in which toolboxes are available include signal processing, control systems,
neural networks, fuzzy logic, wavelets, simulation, and many others.
MATLAB provides a number of features for documenting and sharing your work. You
can integrate your MATLAB code with other languages and applications, and distribute
your MATLAB algorithms and applications.
Features include:
โ€ข High-level language for technical computing
โ€ข Development environment for managing code, files, and data
๏‚ท Interactive tools for iterative exploration, design, and problem solving
๏‚ท Mathematical functions for linear algebra, statistics, Fourier analysis, filtering,
optimization, and numerical integration
โ€ข 2-D and 3-D graphics functions for visualizing data
โ€ข Tools for building custom graphical user interfaces
โ€ข Functions for integrating MATLAB based algorithms with external applications
and languages, such as C, C++, FORTRAN, Javaโ„ข, COM, and Microsoftยฎ
Excelยฎ
MATLAB Implementation.
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
%*********************************************************
% Image Enhancement
%*********************************************************
Y=imread('d:matlab704workpic.png');
I=rgb2gray(Y);
I_imadjust=imadjust(I);
I_histeq=histeq(I);
I_adapthisteq=adapthisteq(I);
imshow(I);
title('Original');
figure,imshow(I_imadjust);
title('Imadjust');
figure,imshow(I_histeq);
title('Histeq');
figure,imshow(I_adapthisteq);
title('Adapthisteq');
figure,imhist(I),title('Original');
figure,imhist(I_imadjust),
title('Histogram:Image adjust operation');
figure,imhist(I_histeq);
title('Histogram; image histogram equalisation opertion');
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
figure,imhist(I_adapthisteq),
title('Histogram image adaptive histogram operation');
%***********************************************************
Results and Screen shots.
The following operations are done on the image:
1. Histogram generation
2. Image adjustment using histogram
3. Image after adjustment using histogram
4. Histogram Equalization
5. Image after Equalization of histogram
6. Adaptive histogram equalization
7. Image after adaptive equalization of histogram
The result of the program provides the following.
The input image is displayed as shown below.
Fig.6: The Image
FIGURE 4 ORIGINAL IMAGES
The histogram of the image is as shown below.
Original
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
The gray value varies from 0 to 255. The number of occurrence of each.
Gray value represents the histogram of the image.
The histogram of the image after adjust operations is as shown below.
Fig.7: The resultant image is as shown below.
FIGURE: IMAGES ADJUST
The histogram of the image after equalization operation is as shown below.
0 50 100 150 200 250
0
200
400
600
800
1000
1200
1400
1600
Original
0 50 100 150 200 250
0
200
400
600
800
1000
1200
1400
1600
Histogram:Image adjust operation
Imadjust
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
Fig.8: The resultant image after histogram equalization is as shown below.
FIGURE: HISTOGRAM WITH EQUALIZATION
The histogram of the image after adaptive equalization is as shown below.
0 50 100 150 200 250
0
200
400
600
800
1000
1200
1400
1600
Histogram; image histogram equalisation opertion
Histeq
0 50 100 150 200 250
0
200
400
600
800
1000
Histogram image adaptive histogram operation
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
Fig.9: The resultant image after histogram adaptive equalization is as shown below.
FIGURE:ADAPTIVE HISTOGRAM
CONCLUSION
The objective of enhancement techniques is to process an image so that the result is
more suitable than the original image for a specific application. The choice of the
technique is depends upon the requirement. The histogram equalization method is
powerful comparing to other methods. The gray levels of an image that has been
subjected to histogram equalization are spread out and always reach white. This
process increases the dynamic range of gray levels and, consequently, produces an
increase in image contrast. In images with narrow histograms and relatively few gray
levels, affect visual graininess and patchiness. Histogram method significantly
improved the visual appearance of the image.
Adapthisteq
Jnanavardhini - Online MultiDisciplinary Research Journal
ISSN No. 2456-7647
BIBILOGRAPHY
BOOKS
1. Digital Image Processing by Gonzalez and Woods, Pearson Education Asia.
2. Digital Image Processing Using MATLAP[2008] by Rafael C. Gonzalez, Richard E.
Woods, Steven L. Eddins, Pearson Education.
3. Fundamentals of Digital Image Processing, Anil K.Jain, Prentice-Hall of India
Private Limited[2004].
4. Fundamentals of Image Processing by I.T. Young J.J. Gerbrands L.J. Van Vliet.
5. Digital Image Processing: Concepts, Algorithms, and Scientific Applications by
Jahne, B.
6. Digital Image Processing by Gonzalez, R.C. and Wintz, Pearson Education Asia.

More Related Content

Similar to ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB

F0342032038
F0342032038F0342032038
F0342032038
ijceronline
ย 
Image Enhancement using Guided Filter for under Exposed Images
Image Enhancement using Guided Filter for under Exposed ImagesImage Enhancement using Guided Filter for under Exposed Images
Image Enhancement using Guided Filter for under Exposed Images
Dr. Amarjeet Singh
ย 

Similar to ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB (20)

Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
Comparison of Histogram Equalization Techniques for Image Enhancement of Gray...
ย 
Ijcatr04051016
Ijcatr04051016Ijcatr04051016
Ijcatr04051016
ย 
F0342032038
F0342032038F0342032038
F0342032038
ย 
Image Enhancement using Guided Filter for under Exposed Images
Image Enhancement using Guided Filter for under Exposed ImagesImage Enhancement using Guided Filter for under Exposed Images
Image Enhancement using Guided Filter for under Exposed Images
ย 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
ย 
Contrast Enhancement Techniques: A Brief and Concise Review
Contrast Enhancement Techniques: A Brief and Concise ReviewContrast Enhancement Techniques: A Brief and Concise Review
Contrast Enhancement Techniques: A Brief and Concise Review
ย 
Enhancement of Medical Images using Histogram Based Hybrid Technique
Enhancement of Medical Images using Histogram Based Hybrid TechniqueEnhancement of Medical Images using Histogram Based Hybrid Technique
Enhancement of Medical Images using Histogram Based Hybrid Technique
ย 
Image Enhancement by Image Fusion for Crime Investigation
Image Enhancement by Image Fusion for Crime InvestigationImage Enhancement by Image Fusion for Crime Investigation
Image Enhancement by Image Fusion for Crime Investigation
ย 
Fuzzy Logic based Contrast Enhancement
Fuzzy Logic based Contrast EnhancementFuzzy Logic based Contrast Enhancement
Fuzzy Logic based Contrast Enhancement
ย 
Ijetr021211
Ijetr021211Ijetr021211
Ijetr021211
ย 
Ijetr021211
Ijetr021211Ijetr021211
Ijetr021211
ย 
Contrast enhancement using various statistical operations and neighborhood pr...
Contrast enhancement using various statistical operations and neighborhood pr...Contrast enhancement using various statistical operations and neighborhood pr...
Contrast enhancement using various statistical operations and neighborhood pr...
ย 
A Comparative Study on Image Contrast Enhancement Techniques
A Comparative Study on Image Contrast Enhancement TechniquesA Comparative Study on Image Contrast Enhancement Techniques
A Comparative Study on Image Contrast Enhancement Techniques
ย 
Feature Extraction of an Image by Using Adaptive Filtering and Morpological S...
Feature Extraction of an Image by Using Adaptive Filtering and Morpological S...Feature Extraction of an Image by Using Adaptive Filtering and Morpological S...
Feature Extraction of an Image by Using Adaptive Filtering and Morpological S...
ย 
An Inclusive Analysis on Various Image Enhancement Techniques
An Inclusive Analysis on Various Image Enhancement TechniquesAn Inclusive Analysis on Various Image Enhancement Techniques
An Inclusive Analysis on Various Image Enhancement Techniques
ย 
The Effectiveness and Efficiency of Medical Images after Special Filtration f...
The Effectiveness and Efficiency of Medical Images after Special Filtration f...The Effectiveness and Efficiency of Medical Images after Special Filtration f...
The Effectiveness and Efficiency of Medical Images after Special Filtration f...
ย 
A DISCUSSION ON IMAGE ENHANCEMENT USING HISTOGRAM EQUALIZATION BY VARIOUS MET...
A DISCUSSION ON IMAGE ENHANCEMENT USING HISTOGRAM EQUALIZATION BY VARIOUS MET...A DISCUSSION ON IMAGE ENHANCEMENT USING HISTOGRAM EQUALIZATION BY VARIOUS MET...
A DISCUSSION ON IMAGE ENHANCEMENT USING HISTOGRAM EQUALIZATION BY VARIOUS MET...
ย 
h.pdf
h.pdfh.pdf
h.pdf
ย 
An Efficient Approach for Image Enhancement Based on Image Fusion with Retine...
An Efficient Approach for Image Enhancement Based on Image Fusion with Retine...An Efficient Approach for Image Enhancement Based on Image Fusion with Retine...
An Efficient Approach for Image Enhancement Based on Image Fusion with Retine...
ย 
7 ijaems sept-2015-8-design and implementation of fuzzy logic based image fus...
7 ijaems sept-2015-8-design and implementation of fuzzy logic based image fus...7 ijaems sept-2015-8-design and implementation of fuzzy logic based image fus...
7 ijaems sept-2015-8-design and implementation of fuzzy logic based image fus...
ย 

More from Jim Jimenez

More from Jim Jimenez (20)

My School Essay Writing - College Homework Help A
My School Essay Writing - College Homework Help AMy School Essay Writing - College Homework Help A
My School Essay Writing - College Homework Help A
ย 
017 Difference Between Paragraph And Essay Ppt
017 Difference Between Paragraph And Essay Ppt017 Difference Between Paragraph And Essay Ppt
017 Difference Between Paragraph And Essay Ppt
ย 
40 Can You Use The Same Essay For Different
40 Can You Use The Same Essay For Different40 Can You Use The Same Essay For Different
40 Can You Use The Same Essay For Different
ย 
Printable Frog Writing Paper Curbeu Co Uk
Printable Frog Writing Paper Curbeu Co UkPrintable Frog Writing Paper Curbeu Co Uk
Printable Frog Writing Paper Curbeu Co Uk
ย 
013 Essay Example Historiographical Glamoro
013 Essay Example Historiographical Glamoro013 Essay Example Historiographical Glamoro
013 Essay Example Historiographical Glamoro
ย 
Scholarship Essay Sample About Why I Deserve The
Scholarship Essay Sample About Why I Deserve TheScholarship Essay Sample About Why I Deserve The
Scholarship Essay Sample About Why I Deserve The
ย 
Lined Printable A4 Paper Letter Writing Personal Us
Lined Printable A4 Paper Letter Writing Personal UsLined Printable A4 Paper Letter Writing Personal Us
Lined Printable A4 Paper Letter Writing Personal Us
ย 
College Pressures Essay 1 VOL.1 .Docx - Economic Se
College Pressures Essay 1 VOL.1 .Docx - Economic SeCollege Pressures Essay 1 VOL.1 .Docx - Economic Se
College Pressures Essay 1 VOL.1 .Docx - Economic Se
ย 
Mla Format Double Spaced Essay - Term Paper Doubl
Mla Format Double Spaced Essay - Term Paper DoublMla Format Double Spaced Essay - Term Paper Doubl
Mla Format Double Spaced Essay - Term Paper Doubl
ย 
012 Essay Example College Application Examples Th
012 Essay Example College Application Examples Th012 Essay Example College Application Examples Th
012 Essay Example College Application Examples Th
ย 
Critical Review Research Papers
Critical Review Research PapersCritical Review Research Papers
Critical Review Research Papers
ย 
Samples Of Dissertation Proposals. Writing A Disser
Samples Of Dissertation Proposals. Writing A DisserSamples Of Dissertation Proposals. Writing A Disser
Samples Of Dissertation Proposals. Writing A Disser
ย 
Sample National Junior Honor Society Essay Tel
Sample National Junior Honor Society Essay TelSample National Junior Honor Society Essay Tel
Sample National Junior Honor Society Essay Tel
ย 
Papers 9 Essays Research Essay Example Apa Template Microsoft Wor
Papers 9 Essays Research Essay Example Apa Template Microsoft WorPapers 9 Essays Research Essay Example Apa Template Microsoft Wor
Papers 9 Essays Research Essay Example Apa Template Microsoft Wor
ย 
Personalised Luxury Writing Paper By Able Labels Not
Personalised Luxury Writing Paper By Able Labels NotPersonalised Luxury Writing Paper By Able Labels Not
Personalised Luxury Writing Paper By Able Labels Not
ย 
Homework Help Best Topics For An Argumentative Essa
Homework Help Best Topics For An Argumentative EssaHomework Help Best Topics For An Argumentative Essa
Homework Help Best Topics For An Argumentative Essa
ย 
๐ŸŒˆ Essay Writing My Teacher. Essay On My
๐ŸŒˆ Essay Writing My Teacher. Essay On My๐ŸŒˆ Essay Writing My Teacher. Essay On My
๐ŸŒˆ Essay Writing My Teacher. Essay On My
ย 
Guide To The 2019-20 Columbia University Suppl
Guide To The 2019-20 Columbia University SupplGuide To The 2019-20 Columbia University Suppl
Guide To The 2019-20 Columbia University Suppl
ย 
Help Writing Papers For College - The Best Place T
Help Writing Papers For College - The Best Place THelp Writing Papers For College - The Best Place T
Help Writing Papers For College - The Best Place T
ย 
Essay Def. What Is An Essay The Definition And Main Features Of
Essay Def. What Is An Essay The Definition And Main Features OfEssay Def. What Is An Essay The Definition And Main Features Of
Essay Def. What Is An Essay The Definition And Main Features Of
ย 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
ย 
Call Girls in Uttam Nagar (delhi) call me [๐Ÿ”9953056974๐Ÿ”] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [๐Ÿ”9953056974๐Ÿ”] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [๐Ÿ”9953056974๐Ÿ”] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [๐Ÿ”9953056974๐Ÿ”] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 

Recently uploaded (20)

FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
ย 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
ย 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
ย 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
ย 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
ย 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
ย 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
ย 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
ย 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
ย 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
ย 
Call Girls in Uttam Nagar (delhi) call me [๐Ÿ”9953056974๐Ÿ”] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [๐Ÿ”9953056974๐Ÿ”] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [๐Ÿ”9953056974๐Ÿ”] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [๐Ÿ”9953056974๐Ÿ”] escort service 24X7
ย 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
ย 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
ย 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
ย 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
ย 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
ย 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
ย 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
ย 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
ย 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
ย 

ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB

  • 1. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 ANALYSIS OF IMAGE ENHANCEMENT TECHNIQUES USING MATLAB Ms . Jyoti kumari Asst. Professor, Department of Computer Science, Acharya Institute of Graduate Studies, jyothikumari@acharya.ac.in Abstract This study primarily centers on Image Processing. The principle objective of enhancement techniques is to process an image so that the result is more suitable than the original image for a specific application, the word specific is important, because it establishes at the outset that the techniques are very much problem oriented. Thus, for example, a method that is quite useful for enhancing x-ray image may not necessarily be the best approach for enhancing pictures of Mars transmitted by a space probe. Image enhancement is a challenging problem in digital image processing because of its usefulness in all image processing applications. Some commonly used image processing techniques are discussed in this study.These techniques are implemented in MATLAB using image processing algorithms. The technique used for the study is two dimensional matrix manipulations. Tools use for the study is MATLAB programming with image processing toolbox. Introduction Image Processing The field of digital image processing refers to processing digital images by means of a digital computer. We can define image processing as a discipline in which both the input and output of a process are images. Image Enhancement In image enhancement, the goal is to accentuate certain image features for subsequent analysis or for image display. Examples include contrast and edge enhancement, pseudo coloring, noise filtering, sharpening, and magnifying. Image enhancement is useful in feature extraction, image analysis, and visual information display. The
  • 2. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 enhancement process itself does not increase the inherent information content in the data. It simply emphasizes certain specified image characteristics. Enhancement algorithms are generally interactive and application-dependent. Image enhancement techniques, such as contrast stretching, map each gray level into another gray level by a predetermined transformation. An example is the histogram equalization method, where the input gray levels are mapped so that the output gray level distribution is uniform. This has been found to be a powerful method of enhancement of low contrast image. Image enhancement is among the simplest and most appealing areas of digital image processing. Basically, the idea behind enhancement techniques is to bring out detail that is obscured, or simply to highlight certain features of interest in an image. A familiar example of enhancement is shown in Fig.1 in which when we increase the contrast of an image and filter it to remove the noise "it looks better." It is important to keep in mind that enhancement is a very subjective area of image processing. Improvement in quality of these degraded images can be achieved by using application of enhancement techniques. Fig.1: Image enhancement The greatest difficulty in image enhancement is quantifying the criteria for enhancement; therefore a large number of image enhancement techniques are empirical and require interactive procedure to obtain satisfactory result. However, image enhancement remains a very important topic because of its usefulness is virtually all image processing applications. Image enhancement generally classified into two categories as follows 1. Point operations
  • 3. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 2. Spatial operations. Enhancement by point processing We begin the study of image enhancement techniques by considering processing methods that are based only on the intensity of single pixels. Some simple Intensity Transformation 1. Contrast stretching (adjusting the brightness) Low contrast images can result from poor illumination, lack of dynamic range in the image sensor, or even wrong setting of a lens aperture during image acquisition. The idea behind contrast stretching is to increase the dynamic range of the gray level in the image being processed. (Contrast โ€“ local change in brightness) 2. Gray level slicing Highlighting a specific range of gray levels in the image often is desired. There are several ways of doing level slicing, but most of them of are variation of two basic themes. One approach is to display a high value for all gray levels in the range of interest and a low value for all other gray levels. The second approach based on the transformation brightness the desired range of gray levels but preserves the background and gray level tonalities in the image. 3. Image negatives Negatives of digital images are useful in numerous applications, such as displaying medical images and photographing a screen with monochrome positive film with the idea of using the resulting negatives as normal slides. The negative of an image can be obtained by subtraction of all intensity values from the maximum intensity value. 4. The Histogram Modelling
  • 4. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 Histogram modelling has been found to be a powerful technique for image enhancement. Histogram In an image processing context, the histogram of an image normally refers to a histogram of the pixel intensity values. This histogram is a graph showing the number of pixels in an image at each different intensity value found in that image. For an 8- bitgrayscale image there are 256 different possible intensities, and so the histogram will graphically display 256 numbers showing the distribution of pixels amongst those grayscale values. How to generate? The operation is very simple. The image is scanned in a single pass and a running count of the number of pixels found at each intensity value is kept. This is then used to construct a suitable histogram. Where it can be used? The histogram is used and altered by many image enhancement operators. Two operators which are closely connected to the histogram are contrast stretching and histogram equalization. They are based on the assumption that an image has to use the full intensity range to display the maximum contrast. Contrast stretching takes an image in which the intensity values don't span the full intensity range and stretches its values linearly. Fig.2: The image
  • 5. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 Histogram The image has low contrast. However, if we look at its histogram, it shows that most of the pixels values are clustered in a rather small area, whereas the top half of the intensity values is used by only a few pixels. The idea of histogram equalization is that the pixels should be distributed evenly over the whole intensity range, i.e. the aim is to transform the image so that the output image has a flat histogram. The image results from the histogram equalization and is the corresponding histogram. Fig.3: The image Histogram 0 50 100 150 200 250 0 200 400 600 800 1000 1200 1400 1600 Original
  • 6. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 In this histogram the values are much more evenly distributed than in the original histogram and the contrast in the image was essentially increased. Generating and plotting image histogram in MATLAB. The histogram of an digital image with L total possible intensity levels in the range[0,G] is defined as the discrete function. h(rk) = nk Where rk is the kth intensity level in the interval [0,G] and nk is the number of pixels in the image whose intensity level is rk. The value of G is 255. MATLAB function for dealing with image histogram is imhist, which has the following basic syntax. h = imhist(f,b) Where f- input image, h-is the histogram, b-is the number of bins(subdivision of intensity scale) used for forming histogram. (If b is not included the default value is 256). Histogram Equalization The process of adjusting intensity values can be done automatically by the histeq function. histeq performs histogram equalization, which involves transforming the 0 50 100 150 200 250 0 200 400 600 800 1000 1200 1400 1600 Histogram:Image adjust operation
  • 7. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 intensity values so that the histogram of the output image approximately matches a specified histogram This example illustrates using histeq to adjust a grayscale image. The original image has low contrast, with most values in the middle of the intensity range. histeq produces an output image having values evenly distributed throughout the range. I = imread(โ€˜file1.bmp'); J = histeq(I); imshow(J) Fig.4: The image after histogram equalization Resultant histogram Adaptive Histogram Equalization As an alternative to using histeq, you can perform adaptive histogram equalization using the adapthisteq function. While histeq works on the entire image, adapthisteq operates 0 50 100 150 200 250 0 200 400 600 800 1000 1200 1400 1600 Histogram:Image adjust operation
  • 8. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 on small regions in the image, called tiles. Each tile's contrast is enhanced, so that the histogram of the output region approximately matches a specified histogram. After performing the equalization, adapthisteq combines neighboring tiles using bilinear interpolation to eliminate artificially induced boundaries. To avoid amplifying any noise that might be present in the image, you can use adapthisteq optional parameters to limit the contrast, especially in homogeneous areas. To illustrate, this example uses adapthisteq to adjust the contrast in a grayscale image. The original image has low contrast, with most values in the middle of the intensity range. adapthisteq produces an output image having values evenly distributed throughout the range. I = imread(โ€˜file1.bmpโ€™); J = adapthisteq(I); imshow(I); figure, imshow(J) Fig.5: The Image Fig: Image after Adaptive Equalization with Its Histogram MATLAB Adapthisteq
  • 9. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 MATLAB is a high-level technical computing language and interactive environment whose basic data element is an array that does not require dimensioning. This allow you to solve many technical computing problems, especially those with matrix and vector formulations, in a fraction of the time it would take to write a program in a scalar non interactive language such as C or FORTRAN. The name MATLAB stands for matrix laboratory. MATLAB has evolved over a period of years with input from many users. In university environments, it is the standard instructional tool for introductory and advanced courses in mathematics, engineering, and science. In industry, MATLAB is the tool of choice for high-productivity research, development, and analysis, MATLAB features a family of add-on application-specific solutions called toolboxes. Very important and most users of MATLAB, toolboxes allow you to learn and apply specialized technology. Toolboxes are comprehensive collections of MATLAB functions (M-files) that extend the MATLAB environment to solve particular classes of problems. Areas in which toolboxes are available include signal processing, control systems, neural networks, fuzzy logic, wavelets, simulation, and many others. MATLAB provides a number of features for documenting and sharing your work. You can integrate your MATLAB code with other languages and applications, and distribute your MATLAB algorithms and applications. Features include: โ€ข High-level language for technical computing โ€ข Development environment for managing code, files, and data ๏‚ท Interactive tools for iterative exploration, design, and problem solving ๏‚ท Mathematical functions for linear algebra, statistics, Fourier analysis, filtering, optimization, and numerical integration โ€ข 2-D and 3-D graphics functions for visualizing data โ€ข Tools for building custom graphical user interfaces โ€ข Functions for integrating MATLAB based algorithms with external applications and languages, such as C, C++, FORTRAN, Javaโ„ข, COM, and Microsoftยฎ Excelยฎ MATLAB Implementation.
  • 10. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 %********************************************************* % Image Enhancement %********************************************************* Y=imread('d:matlab704workpic.png'); I=rgb2gray(Y); I_imadjust=imadjust(I); I_histeq=histeq(I); I_adapthisteq=adapthisteq(I); imshow(I); title('Original'); figure,imshow(I_imadjust); title('Imadjust'); figure,imshow(I_histeq); title('Histeq'); figure,imshow(I_adapthisteq); title('Adapthisteq'); figure,imhist(I),title('Original'); figure,imhist(I_imadjust), title('Histogram:Image adjust operation'); figure,imhist(I_histeq); title('Histogram; image histogram equalisation opertion');
  • 11. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 figure,imhist(I_adapthisteq), title('Histogram image adaptive histogram operation'); %*********************************************************** Results and Screen shots. The following operations are done on the image: 1. Histogram generation 2. Image adjustment using histogram 3. Image after adjustment using histogram 4. Histogram Equalization 5. Image after Equalization of histogram 6. Adaptive histogram equalization 7. Image after adaptive equalization of histogram The result of the program provides the following. The input image is displayed as shown below. Fig.6: The Image FIGURE 4 ORIGINAL IMAGES The histogram of the image is as shown below. Original
  • 12. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 The gray value varies from 0 to 255. The number of occurrence of each. Gray value represents the histogram of the image. The histogram of the image after adjust operations is as shown below. Fig.7: The resultant image is as shown below. FIGURE: IMAGES ADJUST The histogram of the image after equalization operation is as shown below. 0 50 100 150 200 250 0 200 400 600 800 1000 1200 1400 1600 Original 0 50 100 150 200 250 0 200 400 600 800 1000 1200 1400 1600 Histogram:Image adjust operation Imadjust
  • 13. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 Fig.8: The resultant image after histogram equalization is as shown below. FIGURE: HISTOGRAM WITH EQUALIZATION The histogram of the image after adaptive equalization is as shown below. 0 50 100 150 200 250 0 200 400 600 800 1000 1200 1400 1600 Histogram; image histogram equalisation opertion Histeq 0 50 100 150 200 250 0 200 400 600 800 1000 Histogram image adaptive histogram operation
  • 14. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 Fig.9: The resultant image after histogram adaptive equalization is as shown below. FIGURE:ADAPTIVE HISTOGRAM CONCLUSION The objective of enhancement techniques is to process an image so that the result is more suitable than the original image for a specific application. The choice of the technique is depends upon the requirement. The histogram equalization method is powerful comparing to other methods. The gray levels of an image that has been subjected to histogram equalization are spread out and always reach white. This process increases the dynamic range of gray levels and, consequently, produces an increase in image contrast. In images with narrow histograms and relatively few gray levels, affect visual graininess and patchiness. Histogram method significantly improved the visual appearance of the image. Adapthisteq
  • 15. Jnanavardhini - Online MultiDisciplinary Research Journal ISSN No. 2456-7647 BIBILOGRAPHY BOOKS 1. Digital Image Processing by Gonzalez and Woods, Pearson Education Asia. 2. Digital Image Processing Using MATLAP[2008] by Rafael C. Gonzalez, Richard E. Woods, Steven L. Eddins, Pearson Education. 3. Fundamentals of Digital Image Processing, Anil K.Jain, Prentice-Hall of India Private Limited[2004]. 4. Fundamentals of Image Processing by I.T. Young J.J. Gerbrands L.J. Van Vliet. 5. Digital Image Processing: Concepts, Algorithms, and Scientific Applications by Jahne, B. 6. Digital Image Processing by Gonzalez, R.C. and Wintz, Pearson Education Asia.