SlideShare uma empresa Scribd logo
1 de 27
IMAGE CONTRAST
ENHANCEMENT METHODS
7-10-2015
ANALYSIS OF CONTRAST ENHANCEMENT
METHODS
 Contrast is the difference in
visual properties that makes
an object (or image)
distinguishable from other
objects and the
background.
 It is the different between
the darker and the lighter
pixel of the image, if it is big
the image will have high
contrast and in the other
case the image will have
low contrast.
CONTRAST DEFINITION
CONTRAST ENHANCEMENT METHODS
 The principal objective of enhancement is to process an
image so that the result is more suitable than the
original image for a specific application.
 For example, a method that is quite useful for
enhancing X-ray images may not necessarily be the
best approach for enhancing pictures of Mars
transmitted by a space probe.
Image
enhancement
Spatial
domain
methods
Frequency
domain
methods
SPATIAL DOMAIN METHODS
 The term spatial domain refers to the image plane
itself.
 Spatial domain methods are procedures that
operate directly on these pixels in an image.
 Spatial domain processes will be denoted by the
expression g(x,y)=T[f(x,y)], where f(x,y) is the input
image, g(x,y) is the processed image, and T is an
operator on f, defined over some neighborhood of
(x, y).
FREQUENCY DOMAIN METHODS
 Frequency domain processing techniques are
based on modifying the Fourier transform of an
image.
 More suitable for filtering spectrums.
 Any function that periodically repeats itself can be
expressed as the sum of sines and cosines of
different frequencies, each multiplied by a different
coefficient.
LOGARITHMIC TRANSFORMATION
 The general form is
s = c * log (1 + r),
where s is the output value, r is the input value and
c is a constant.
 This transformation maps a narrow range of low
gray-level values in the input image into a wider
range of output levels.
MATHEMATICAL MODELING
FLOW CHART FOR IMPLEMENTATION OF
LOGARITHMIC TRANSFORMATION
CODE FOR LOGARITHMIC TRANSFORMATION
im=imread('cameraman.tif');
subplot(231),imshow(im);
title('original image');
imd=im2double(im);
c=2.5;
d=0.5;
im3=c*log(1+imd);
im4=d*log(1+imd);
subplot(232),imshow(im3);
title('transformed image(c=2.5)');
subplot(233),imshow(im4);
title('transformed image(c=0.5)');
subplot(234),imhist(im);
title('histogram of the original image');
subplot(235),imhist(im3);
title('histogram of the transformed image(c=2.5)');
subplot(236),imhist(im4);
title('histogram of the transformed image(c=0.5)');
EXPERIMENTAL RESULTS
POWER-LAW TRANSFORMATION
 The general form is s = c * 𝐫 𝜸
,
where c and γ are positive
constants.
 Power-law curves with
fractional values of γ map a
narrow range of dark input
values into a wider range of
output values, with the
opposite being true for higher
values of input levels.
FLOW CHART FOR IMPLEMENTATION OF
POWER LAW TRANSFORMATION
CODE FOR POWER LAW TRANSFORMATION
im=imread('cameraman.tif');
subplot(231),imshow(im);
title('original image');
imd=im2double(im);
gamma=0.25;
im3=imd.^gamma;
gamma=2.5;
im4=imd.^gamma;
subplot(232),imshow(im3);
title('transformed image(gamma=0.25)');
subplot(233),imshow(im4);
title('transformed image(gamma=2.5)');
subplot(234),imhist(im);
title('histogram of the original image');
subplot(235),imhist(im3);
title('histogram of the transformed image(gamma=0.5)');
subplot(236),imhist(im4);
title('histogram of the transformed image(gamma=2.5)');
EXPERIMENTAL RESULTS
GAMMA CORRECTION
 The exponent in the
power-law equation is
referred to as gamma.
The process used to
correct this power-law
response phenomena
is called gamma
correction.
 The process used to
correct power-law
response phenomena
is called gamma
correction.
 𝟏. 𝟖 < 𝛄 < 2.5
HISTOGRAM EQUALIZATION
 The general form is
sk=
L−1 ∗(rk−rkmin)
rkmax−rkmin
where
k=0,1,2,…L-1, r and s are
the input and output pixels of
the image, L is the different
values that can be the pixels,
and rkmax and rkmin are the
maximum and minimum gray
values of the input image.
 This method usually increase
the global contrast of the
image. This allows for area’s
of lower contrast to gain
higher contrast.
EXPERIMENT RESULTS
CODE FOR HISTOGRAM EQUALIZATION
input_image=imread('dollars.tif');
input_image_process=input_image;
output_image_process=histeq(input_image_process);
output_image=im2uint8(mat2gray(output_image_process));
input_hist=imhist(input_image);
output_hist=imhist(output_image);
subplot(2,2,1),imshow(input_image),title('Input image')
subplot(2,2,2),imshow(output_image),title('Output image')
subplot(2,2,3),plot(input_hist),title('Input histogram')
xlabel('Gray levels')
ylabel('Relative frecuency')
set(gca, 'xlim', [0 255]);
subplot(2,2,4),plot(output_hist),title('Output histogram')
xlabel('Gray levels'),ylabel('Relative frecuency')
set(gca, 'xlim', [0 255]);
FLOW CHART FOR HISTOGRAM EQUALIZATION
ADVANTAGES
 The method is useful in images with backgrounds and
foregrounds that are both bright or both dark.
 A advantage of the method is that it is a fairly
straightforward technique and an invertible operator.
DISADVANTAGE
 A disadvantage of the method is that it is indiscriminate.
It may increase the contrast of background noise, while
decreasing the usable signal.
CONTRAST STRETCHING
 Low-contrast images can result from poor
illumination, lack of dynamic range in the imaging
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 levels in the image
being processed.
CONTRAST STRETCHING FLOWCHART
CODE FOR CONTRAST STRECHING
im=imread('cameraman.tif');
subplot(231),imshow(im);
title('original image');
imd=double(im);
m=80;
e=3;
im3=1 ./ (1 + (m./imd).^e);
subplot(222),imshow(im3);
title('contrast stretched image(m=80,e=3)');
subplot(223),imhist(im);
title('histogram of the original image');
subplot(224),imhist(im3);
title('histogram of contrast stretched image(m=80,e=3)');
EXPERIMENTAL RESULTS
APPLICATION
 (Left) Original sensed fingerprint; (center) image
enhanced by detection and thinning of ridges;
(right) identification of special features called
minutia", which can be used for matching to millions
of fingerprint representations in a database.
CONCLUSION
 Image enhancement is basically improving the
interpretability or perception of information in images for
human viewers and providing `better' input for other
automated image processing techniques.
 For dark images with low contrast the better results will be
with the logarithm and the power law transformations using
in the second one gamma values lower than 1.
 For light images it would be use the power law
transformation with gamma higher than 1.
 For image with low contrast in gray scale the better methods
are histogram equalization and contrast stretching.
THANK YOU

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 
Histogram based enhancement
Histogram based enhancementHistogram based enhancement
Histogram based enhancement
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem Ashraf
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Image compression .
Image compression .Image compression .
Image compression .
 
Fundamentals steps in Digital Image processing
Fundamentals steps in Digital Image processingFundamentals steps in Digital Image processing
Fundamentals steps in Digital Image processing
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Hough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul IslamHough Transform By Md.Nazmul Islam
Hough Transform By Md.Nazmul Islam
 
Log Transformation in Image Processing with Example
Log Transformation in Image Processing with ExampleLog Transformation in Image Processing with Example
Log Transformation in Image Processing with Example
 
Image enhancement techniques
Image enhancement techniques Image enhancement techniques
Image enhancement techniques
 
SPATIAL FILTER
SPATIAL FILTERSPATIAL FILTER
SPATIAL FILTER
 

Destaque

Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
Ashish Kumar
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
Diwaker Pant
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domain
Malik obeisat
 
Entering data, histogram, box plot
Entering data, histogram, box plotEntering data, histogram, box plot
Entering data, histogram, box plot
redeyejedi
 

Destaque (18)

Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
The application of image enhancement in color and grayscale images
The application of image enhancement in color and grayscale imagesThe application of image enhancement in color and grayscale images
The application of image enhancement in color and grayscale images
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
A novel approach for denoising and enhancement of extremely low light video
A novel approach for denoising and enhancement of extremely low light videoA novel approach for denoising and enhancement of extremely low light video
A novel approach for denoising and enhancement of extremely low light video
 
IMAGE ENHANCEMENT IN CASE OF UNEVEN ILLUMINATION USING VARIABLE THRESHOLDING ...
IMAGE ENHANCEMENT IN CASE OF UNEVEN ILLUMINATION USING VARIABLE THRESHOLDING ...IMAGE ENHANCEMENT IN CASE OF UNEVEN ILLUMINATION USING VARIABLE THRESHOLDING ...
IMAGE ENHANCEMENT IN CASE OF UNEVEN ILLUMINATION USING VARIABLE THRESHOLDING ...
 
Multi Aperture Photography
Multi Aperture PhotographyMulti Aperture Photography
Multi Aperture Photography
 
Q01761119124
Q01761119124Q01761119124
Q01761119124
 
Blogging and academic identity
Blogging and academic identityBlogging and academic identity
Blogging and academic identity
 
study Coded Aperture
study Coded Aperturestudy Coded Aperture
study Coded Aperture
 
rs and gis
rs and gisrs and gis
rs and gis
 
Statistic chapter 1 & 2
Statistic chapter 1 & 2Statistic chapter 1 & 2
Statistic chapter 1 & 2
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domain
 
Wong weisenbeck
Wong weisenbeckWong weisenbeck
Wong weisenbeck
 
Entering data, histogram, box plot
Entering data, histogram, box plotEntering data, histogram, box plot
Entering data, histogram, box plot
 
deona
deonadeona
deona
 

Semelhante a Introduction to image contrast and enhancement method

IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
ijceronline
 
Paper id 25201490
Paper id 25201490Paper id 25201490
Paper id 25201490
IJRAT
 

Semelhante a Introduction to image contrast and enhancement method (20)

DIP-Enhancement-Spatial.pptx
DIP-Enhancement-Spatial.pptxDIP-Enhancement-Spatial.pptx
DIP-Enhancement-Spatial.pptx
 
matlab.docx
matlab.docxmatlab.docx
matlab.docx
 
image enhancement.pptx
image enhancement.pptximage enhancement.pptx
image enhancement.pptx
 
imageenhancementtechniques-140316011049-phpapp01 (1).pptx
imageenhancementtechniques-140316011049-phpapp01 (1).pptximageenhancementtechniques-140316011049-phpapp01 (1).pptx
imageenhancementtechniques-140316011049-phpapp01 (1).pptx
 
Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)Digital Image Processing (Lab 07)
Digital Image Processing (Lab 07)
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Seam Carving Approach for Multirate Processing of Digital Images
Seam Carving Approach for Multirate Processing of Digital ImagesSeam Carving Approach for Multirate Processing of Digital Images
Seam Carving Approach for Multirate Processing of Digital Images
 
Ad24210214
Ad24210214Ad24210214
Ad24210214
 
Paper id 25201490
Paper id 25201490Paper id 25201490
Paper id 25201490
 
Hybrid Technique for Image Enhancement
Hybrid Technique for Image EnhancementHybrid Technique for Image Enhancement
Hybrid Technique for Image Enhancement
 
Fpga implementation of fusion technique for fingerprint application
Fpga implementation of fusion technique for fingerprint applicationFpga implementation of fusion technique for fingerprint application
Fpga implementation of fusion technique for fingerprint application
 
Fpga implementation of fusion technique for fingerprint application
Fpga implementation of fusion technique for fingerprint applicationFpga implementation of fusion technique for fingerprint application
Fpga implementation of fusion technique for fingerprint application
 
Digital image forgery detection
Digital image forgery detectionDigital image forgery detection
Digital image forgery detection
 
G04654247
G04654247G04654247
G04654247
 
Image Quality Feature Based Detection Algorithm for Forgery in Images
Image Quality Feature Based Detection Algorithm for Forgery in Images  Image Quality Feature Based Detection Algorithm for Forgery in Images
Image Quality Feature Based Detection Algorithm for Forgery in Images
 
AN EMERGING TREND OF FEATURE EXTRACTION METHOD IN VIDEO PROCESSING
AN EMERGING TREND OF FEATURE EXTRACTION METHOD IN VIDEO PROCESSINGAN EMERGING TREND OF FEATURE EXTRACTION METHOD IN VIDEO PROCESSING
AN EMERGING TREND OF FEATURE EXTRACTION METHOD IN VIDEO PROCESSING
 
F0342032038
F0342032038F0342032038
F0342032038
 
A decomposition framework for image denoising algorithms...
A decomposition framework for image denoising algorithms...A decomposition framework for image denoising algorithms...
A decomposition framework for image denoising algorithms...
 

Mais de Abhishekvb (6)

A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
 
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
 
Dietary Spectrometer Sensor
Dietary Spectrometer SensorDietary Spectrometer Sensor
Dietary Spectrometer Sensor
 
Case Study on Basamati Rice Patent Battle
Case Study on Basamati Rice Patent BattleCase Study on Basamati Rice Patent Battle
Case Study on Basamati Rice Patent Battle
 
VLSI Introduction to PSPICE
VLSI Introduction to PSPICEVLSI Introduction to PSPICE
VLSI Introduction to PSPICE
 
NAND gate
NAND gateNAND gate
NAND gate
 

Último

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Último (20)

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 

Introduction to image contrast and enhancement method

  • 2. ANALYSIS OF CONTRAST ENHANCEMENT METHODS  Contrast is the difference in visual properties that makes an object (or image) distinguishable from other objects and the background.  It is the different between the darker and the lighter pixel of the image, if it is big the image will have high contrast and in the other case the image will have low contrast. CONTRAST DEFINITION
  • 3. CONTRAST ENHANCEMENT METHODS  The principal objective of enhancement is to process an image so that the result is more suitable than the original image for a specific application.  For example, a method that is quite useful for enhancing X-ray images may not necessarily be the best approach for enhancing pictures of Mars transmitted by a space probe.
  • 5. SPATIAL DOMAIN METHODS  The term spatial domain refers to the image plane itself.  Spatial domain methods are procedures that operate directly on these pixels in an image.  Spatial domain processes will be denoted by the expression g(x,y)=T[f(x,y)], where f(x,y) is the input image, g(x,y) is the processed image, and T is an operator on f, defined over some neighborhood of (x, y).
  • 6. FREQUENCY DOMAIN METHODS  Frequency domain processing techniques are based on modifying the Fourier transform of an image.  More suitable for filtering spectrums.  Any function that periodically repeats itself can be expressed as the sum of sines and cosines of different frequencies, each multiplied by a different coefficient.
  • 7. LOGARITHMIC TRANSFORMATION  The general form is s = c * log (1 + r), where s is the output value, r is the input value and c is a constant.  This transformation maps a narrow range of low gray-level values in the input image into a wider range of output levels. MATHEMATICAL MODELING
  • 8. FLOW CHART FOR IMPLEMENTATION OF LOGARITHMIC TRANSFORMATION
  • 9. CODE FOR LOGARITHMIC TRANSFORMATION im=imread('cameraman.tif'); subplot(231),imshow(im); title('original image'); imd=im2double(im); c=2.5; d=0.5; im3=c*log(1+imd); im4=d*log(1+imd); subplot(232),imshow(im3); title('transformed image(c=2.5)'); subplot(233),imshow(im4); title('transformed image(c=0.5)'); subplot(234),imhist(im); title('histogram of the original image'); subplot(235),imhist(im3); title('histogram of the transformed image(c=2.5)'); subplot(236),imhist(im4); title('histogram of the transformed image(c=0.5)');
  • 11. POWER-LAW TRANSFORMATION  The general form is s = c * 𝐫 𝜸 , where c and γ are positive constants.  Power-law curves with fractional values of γ map a narrow range of dark input values into a wider range of output values, with the opposite being true for higher values of input levels.
  • 12. FLOW CHART FOR IMPLEMENTATION OF POWER LAW TRANSFORMATION
  • 13. CODE FOR POWER LAW TRANSFORMATION im=imread('cameraman.tif'); subplot(231),imshow(im); title('original image'); imd=im2double(im); gamma=0.25; im3=imd.^gamma; gamma=2.5; im4=imd.^gamma; subplot(232),imshow(im3); title('transformed image(gamma=0.25)'); subplot(233),imshow(im4); title('transformed image(gamma=2.5)'); subplot(234),imhist(im); title('histogram of the original image'); subplot(235),imhist(im3); title('histogram of the transformed image(gamma=0.5)'); subplot(236),imhist(im4); title('histogram of the transformed image(gamma=2.5)');
  • 15. GAMMA CORRECTION  The exponent in the power-law equation is referred to as gamma. The process used to correct this power-law response phenomena is called gamma correction.  The process used to correct power-law response phenomena is called gamma correction.  𝟏. 𝟖 < 𝛄 < 2.5
  • 16. HISTOGRAM EQUALIZATION  The general form is sk= L−1 ∗(rk−rkmin) rkmax−rkmin where k=0,1,2,…L-1, r and s are the input and output pixels of the image, L is the different values that can be the pixels, and rkmax and rkmin are the maximum and minimum gray values of the input image.  This method usually increase the global contrast of the image. This allows for area’s of lower contrast to gain higher contrast.
  • 18. CODE FOR HISTOGRAM EQUALIZATION input_image=imread('dollars.tif'); input_image_process=input_image; output_image_process=histeq(input_image_process); output_image=im2uint8(mat2gray(output_image_process)); input_hist=imhist(input_image); output_hist=imhist(output_image); subplot(2,2,1),imshow(input_image),title('Input image') subplot(2,2,2),imshow(output_image),title('Output image') subplot(2,2,3),plot(input_hist),title('Input histogram') xlabel('Gray levels') ylabel('Relative frecuency') set(gca, 'xlim', [0 255]); subplot(2,2,4),plot(output_hist),title('Output histogram') xlabel('Gray levels'),ylabel('Relative frecuency') set(gca, 'xlim', [0 255]);
  • 19. FLOW CHART FOR HISTOGRAM EQUALIZATION
  • 20. ADVANTAGES  The method is useful in images with backgrounds and foregrounds that are both bright or both dark.  A advantage of the method is that it is a fairly straightforward technique and an invertible operator. DISADVANTAGE  A disadvantage of the method is that it is indiscriminate. It may increase the contrast of background noise, while decreasing the usable signal.
  • 21. CONTRAST STRETCHING  Low-contrast images can result from poor illumination, lack of dynamic range in the imaging 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 levels in the image being processed.
  • 23. CODE FOR CONTRAST STRECHING im=imread('cameraman.tif'); subplot(231),imshow(im); title('original image'); imd=double(im); m=80; e=3; im3=1 ./ (1 + (m./imd).^e); subplot(222),imshow(im3); title('contrast stretched image(m=80,e=3)'); subplot(223),imhist(im); title('histogram of the original image'); subplot(224),imhist(im3); title('histogram of contrast stretched image(m=80,e=3)');
  • 25. APPLICATION  (Left) Original sensed fingerprint; (center) image enhanced by detection and thinning of ridges; (right) identification of special features called minutia", which can be used for matching to millions of fingerprint representations in a database.
  • 26. CONCLUSION  Image enhancement is basically improving the interpretability or perception of information in images for human viewers and providing `better' input for other automated image processing techniques.  For dark images with low contrast the better results will be with the logarithm and the power law transformations using in the second one gamma values lower than 1.  For light images it would be use the power law transformation with gamma higher than 1.  For image with low contrast in gray scale the better methods are histogram equalization and contrast stretching.

Notas do Editor

  1. May decreases the contrast.