SlideShare a Scribd company logo
1 of 36
AN APPROACH OF CONTRAST
ENHANCEMENT USING GENETIC
ALGORITHM
Supervised By
Dr. Taskeed Jabid
Assistant Professor
Department of Computer Science & Engineering
East West University
Presented By
S.M.Sadman Sadid
Nayeem Hasan
OVERVIEW
Introduction
Objectives
Application of IE
Working Method
Experimental Result
Conclusion
Future Work
Reference
INTRODUCTION
Image Enhancement
Image enhancement is basically the method of manipulating or
improving an image where the visual appearance of output image is
more compatible than original image for a specific or dynamic
application.
Image Enhancement Techniques
Spatial Domain Enhancement
Frequency Domain Enhancement
INTRODUCTION CONT..
Genetic Algorithm
A heuristic search technique used in computing and Artificial
Intelligence to find optimized solutions to search problems using
techniques inspired by evolutionary biology- Initialize, Selection,
Fitness, Crossover Mutation.
A genetic algorithm (GA) is extraordinary for exploring solutions for
complex search issues.
INTRODUCTION CONT..
Fundamental Working Procedure of GA
Initialization
Fitness Calculation
Selection
Crossover
Mutation
Termination
OBJECTIVES
Main Objective:
Make an image more suitable than original image
Contrast Enhancement
Natural looking image
To make image suitable for dynamic field
APPLICATIONS OF IE CONT..
Medical Sector
APPLICATIONS OF IE CONT..
Forensics
APPLICATIONS OF IE CONT..
Astrophotography
APPLICATIONS OF IE CONT..
Atmospheric Science
APPLICATIONS OF IE CONT..
Misuse of IE
 In e-commerce
GENETIC ALGORITHM IMPLEMENTATION
There are five basic function of genetic algorithm
• Chromosome structure.
• Fitness function
• Selection algorithm
• Crossover
• Mutation
GENETIC ALGORITHM IMPLEMENTATION
CONT..
Chromosome Structure
• First, convert a RGB image to grey level image where the intensity of
the image is between 0 and 255.
• For implementing the algorithm first we create an array to store the
image intensity value.
• Then we remove the duplicate value from the array and sort it in
ascending order.
• After removing the duplicate value we get a new array and create
chromosome from it.
GENETIC ALGORITHM IMPLEMENTATION
CONT..
Fig 1: An array generated from image with index
17 25 13 11 29 17 21 25 31 91
1 2 3 4 5 6 7 8 9 10
11 13 17 21 25 31 29 91
1 2 3 4 5 6 7 8
Fig 2: First chromosome generated from the image
Chromosome Structure
GENETIC ALGORITHM IMPLEMENTATION
CONT..
Chromosome Structure
• Then create an array of random numbers of chromosome size where
the first index value is initialized to 0 and the last index value is
initialized to 255.
• Then sort the random array in ascending order and put random array
value in the image to create the initial population for the genetic
algorithm.
CHROMOSOME STRUCTURE
0 52 91 151 153 202 221 225
1 2 3 4 5 6 7 8
Fig 3: Random array of chromosome size
17 25 13 11 29 17 21 25 31 91
1 2 3 4 5 6 7 8 9 10
(a)
0 51 91 151 153 0 202 52 221 225
1 2 3 4 5 6 7 8 9 10
(b)
Fig 4: (a) The image array (b) The image array after putting random value
FITNESS FUNCTION
• The fitness of the chromosome of the is calculated by the following:
fitness(x)=log(log(E(I(x)))) * n_edges(I(x))
E(I(x)) = 𝑥 𝑦 𝛿ℎ1(𝑥, 𝑦)2+𝛿𝑣1(𝑥, 𝑦)2
• Where,
𝛿ℎ1(𝑥, 𝑦)= g1(x+1,y-1) + 2g1(x+1,y) + g1(x+1,y+1) - g1(x-1,y-1) - 2g1(x-1,y) - g1(x-
1,y+1)
𝛿𝑣1(𝑥, 𝑦)= g1(x-1,y+1) + 2g1(x,y+1) + g1(x+1,y+1) - g1(x-1,y-1) - 2g1(x,y-1) - g1(x+1,y-
1)
SELECTION ALGORITHM
• Selection of individual is based on their fitness value. The individual
which have more fitness value than other have more chance of going
to the next generation.
• The main idea of this process is to crate stronger generation than
previous based on fitness value. So the individual which have grater
fitness value than other have grater possibility of survival.
• On the contrary the weaker individual have less possibility of survival.
SELECTION ALGORITHM
• Selection of individual is based on this equation:
PS – (PS * PC)
• So the number of individual that are selected for next generation is PS
* PC. The process is preformed until the terminating condition is meet.
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• Crossover:
For crossover two chromosome have selected randomly and
crossover operation has proceeded.
Form the crossover operation two children have created.
Therefore
PS * PC individual has selected from the selection process.
Two points have selected randomly from them. Finally, each
new individuals are sorted in ascending order.
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• Crossover:
0 29 19 161 201 75 83 51 166 225
0 55 91 151 153 202 22 221 24 225
(b)
(a)
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• Crossover:
Random Value: 4
0 29 19 161 201 75 83 51 166 225
0 55 91 151 153 202 22 221 24 225
(b)
(a)
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• Crossover:
Random Value: 4
0 55 91 151 201 75 83 51 166 225
0 29 19 151 153 202 22 221 24 225
(d)
(c)
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• After Crossover the value will be sorted:
0 51 55 75 83 91 151 166 201 225
0 19 22 24 29 151 153 202 221 225
(d)
(c)
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• Mutation:
For mutation, a random number is selected and the number of the
element is selected for mutation. If fitness value is less than mutation
constant, mutation process will be preceded.
 Five percent of the individual elements are selected randomly for
mutation. For each element, a random integer number that should be
less than or equal to the next element value and more than or equal
to the previous element value is generated.
This random number is replaced by element. The value of mutation
constant Pm should be between 0.015 to 0.02.
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• Mutation:
0 29 19 161 201 75 83 51 166 225
(a)
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• Mutation:
0 29 19 161 201 75 83 51 166 225
(a)
GENETIC ALGORITHM IMPLEMENTATION
CONT..
• After Mutation and sorting:
0 29 65 72 83 122 161 166 201 225
(a)
TERMINATING CONDITION
• In genetic algorithm the number of iteration is infinity. So a terminating
condition is used to stop this process and iteration.
When the iteration meet the maximum number of iteration.
When the difference of best fitness in two consecutive generation
is less than ϵ. The value of ϵ has been considered as 0.02 *
best_fitness.
EXPERIMENTAL RESULT
EXPERIMENTAL RESULT CONT..
EXPERIMENTAL RESULT CONT..
CONCLUSION
• So, we found genetic algorithm for image contrast enhancement
especially when input image has low dynamic range. This method
works on simple chromosome structure to enhance the image. Some
iteration has done on the process to get the enhanced image. To
confirm the result is compared to some standards. The experiment
result is satisfactory though it consumes a lot processing time.
Besides, experiment results demonstrated that the enhanced images
are suitable for different application field.
FUTURE WORK
• In future we were going to combine some other algorithm and to
compare those result with this one.
REFERENCE
[1] Sara Hashemi, Soheila Kaiani, Navid Noroozi, Mohsen Ebrahimi Moghaddam, An image
contrast enhancement method based on genetic algorithm, 11 Dec 2009, Available:
http://www.elsevier.com/locate/patrec
[2] M. Abdullah-Al-Wadud, Md. Hasanul Kabir, M. Ali Akber Dewan, and Oksam Chae, A dynamic
histogram equalization for image contrast enhancement, IEEE Trans. Consumer Electron., vol. 53,
no. 2, pp. 593- 600, May 2007.
[3] Gaurav Mohan Singh, Mahipal Singh Kohli and Manoj Diwakar, A Review of Image
Enhancement Techniques in Image Processing, HCTL Open IJTIR, Volume 5, September 2013.
[4] S.S. Bedi, Rati Khandelw, Various Image Enhancement Techniques-A Critical Review,
IJARCCE, Vol. 2, Issue 3, March 2013.
An approach to enhancing image contrast using  genetic algorithm

More Related Content

Similar to An approach to enhancing image contrast using genetic algorithm

Ijarcet vol-2-issue-4-1342-1346
Ijarcet vol-2-issue-4-1342-1346Ijarcet vol-2-issue-4-1342-1346
Ijarcet vol-2-issue-4-1342-1346
Editor IJARCET
 
Dh3211231128
Dh3211231128Dh3211231128
Dh3211231128
IJMER
 

Similar to An approach to enhancing image contrast using genetic algorithm (20)

ngboost.pptx
ngboost.pptxngboost.pptx
ngboost.pptx
 
M017127578
M017127578M017127578
M017127578
 
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
Application of Genetic Algorithm and Particle Swarm Optimization in Software ...
 
call for papers, research paper publishing, where to publish research paper, ...
call for papers, research paper publishing, where to publish research paper, ...call for papers, research paper publishing, where to publish research paper, ...
call for papers, research paper publishing, where to publish research paper, ...
 
Structural Optimization using Genetic Algorithms - Artificial Intelligence Fu...
Structural Optimization using Genetic Algorithms - Artificial Intelligence Fu...Structural Optimization using Genetic Algorithms - Artificial Intelligence Fu...
Structural Optimization using Genetic Algorithms - Artificial Intelligence Fu...
 
Ijarcet vol-2-issue-4-1342-1346
Ijarcet vol-2-issue-4-1342-1346Ijarcet vol-2-issue-4-1342-1346
Ijarcet vol-2-issue-4-1342-1346
 
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
COMPARISON BETWEEN THE GENETIC ALGORITHMS OPTIMIZATION AND PARTICLE SWARM OPT...
 
Comparison between the genetic algorithms optimization and particle swarm opt...
Comparison between the genetic algorithms optimization and particle swarm opt...Comparison between the genetic algorithms optimization and particle swarm opt...
Comparison between the genetic algorithms optimization and particle swarm opt...
 
Performance Analysis of GA and PSO over Economic Load Dispatch Problem
Performance Analysis of GA and PSO over Economic Load Dispatch ProblemPerformance Analysis of GA and PSO over Economic Load Dispatch Problem
Performance Analysis of GA and PSO over Economic Load Dispatch Problem
 
final paper1
final paper1final paper1
final paper1
 
1582997627872.pdf
1582997627872.pdf1582997627872.pdf
1582997627872.pdf
 
Dh3211231128
Dh3211231128Dh3211231128
Dh3211231128
 
Using particle swarm optimization to solve test functions problems
Using particle swarm optimization to solve test functions problemsUsing particle swarm optimization to solve test functions problems
Using particle swarm optimization to solve test functions problems
 
EMOD_Optimization_Presentation.pptx
EMOD_Optimization_Presentation.pptxEMOD_Optimization_Presentation.pptx
EMOD_Optimization_Presentation.pptx
 
Transfer learning with attenuation mechanism for mammogram image.pptx
Transfer learning with attenuation mechanism for mammogram image.pptxTransfer learning with attenuation mechanism for mammogram image.pptx
Transfer learning with attenuation mechanism for mammogram image.pptx
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Introduction to particle swarm optimization
Introduction to particle swarm optimizationIntroduction to particle swarm optimization
Introduction to particle swarm optimization
 
04 1 evolution
04 1 evolution04 1 evolution
04 1 evolution
 
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
Prediction of Euro 50 Using Back Propagation Neural Network (BPNN) and Geneti...
 
Image Contrast Enhancement Approach using Differential Evolution and Particle...
Image Contrast Enhancement Approach using Differential Evolution and Particle...Image Contrast Enhancement Approach using Differential Evolution and Particle...
Image Contrast Enhancement Approach using Differential Evolution and Particle...
 

More from East West University (6)

Comparative Analysis of Distance Vector Routing & Link State Protocols
Comparative Analysis of Distance Vector Routing & Link State ProtocolsComparative Analysis of Distance Vector Routing & Link State Protocols
Comparative Analysis of Distance Vector Routing & Link State Protocols
 
Simulation of food serving system of EWU canteen using Arena software
Simulation of food serving system of EWU canteen using Arena softwareSimulation of food serving system of EWU canteen using Arena software
Simulation of food serving system of EWU canteen using Arena software
 
Right to be Forgotten
Right to be ForgottenRight to be Forgotten
Right to be Forgotten
 
Wannacry Virus
Wannacry VirusWannacry Virus
Wannacry Virus
 
Software piracy in Bangladesh
Software piracy in BangladeshSoftware piracy in Bangladesh
Software piracy in Bangladesh
 
Digital Search Tree
Digital Search TreeDigital Search Tree
Digital Search Tree
 

Recently uploaded

Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Recently uploaded (20)

%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 

An approach to enhancing image contrast using genetic algorithm

  • 1. AN APPROACH OF CONTRAST ENHANCEMENT USING GENETIC ALGORITHM Supervised By Dr. Taskeed Jabid Assistant Professor Department of Computer Science & Engineering East West University Presented By S.M.Sadman Sadid Nayeem Hasan
  • 2. OVERVIEW Introduction Objectives Application of IE Working Method Experimental Result Conclusion Future Work Reference
  • 3. INTRODUCTION Image Enhancement Image enhancement is basically the method of manipulating or improving an image where the visual appearance of output image is more compatible than original image for a specific or dynamic application. Image Enhancement Techniques Spatial Domain Enhancement Frequency Domain Enhancement
  • 4. INTRODUCTION CONT.. Genetic Algorithm A heuristic search technique used in computing and Artificial Intelligence to find optimized solutions to search problems using techniques inspired by evolutionary biology- Initialize, Selection, Fitness, Crossover Mutation. A genetic algorithm (GA) is extraordinary for exploring solutions for complex search issues.
  • 5. INTRODUCTION CONT.. Fundamental Working Procedure of GA Initialization Fitness Calculation Selection Crossover Mutation Termination
  • 6. OBJECTIVES Main Objective: Make an image more suitable than original image Contrast Enhancement Natural looking image To make image suitable for dynamic field
  • 7. APPLICATIONS OF IE CONT.. Medical Sector
  • 8. APPLICATIONS OF IE CONT.. Forensics
  • 9. APPLICATIONS OF IE CONT.. Astrophotography
  • 10. APPLICATIONS OF IE CONT.. Atmospheric Science
  • 11. APPLICATIONS OF IE CONT.. Misuse of IE  In e-commerce
  • 12. GENETIC ALGORITHM IMPLEMENTATION There are five basic function of genetic algorithm • Chromosome structure. • Fitness function • Selection algorithm • Crossover • Mutation
  • 13. GENETIC ALGORITHM IMPLEMENTATION CONT.. Chromosome Structure • First, convert a RGB image to grey level image where the intensity of the image is between 0 and 255. • For implementing the algorithm first we create an array to store the image intensity value. • Then we remove the duplicate value from the array and sort it in ascending order. • After removing the duplicate value we get a new array and create chromosome from it.
  • 14. GENETIC ALGORITHM IMPLEMENTATION CONT.. Fig 1: An array generated from image with index 17 25 13 11 29 17 21 25 31 91 1 2 3 4 5 6 7 8 9 10 11 13 17 21 25 31 29 91 1 2 3 4 5 6 7 8 Fig 2: First chromosome generated from the image Chromosome Structure
  • 15. GENETIC ALGORITHM IMPLEMENTATION CONT.. Chromosome Structure • Then create an array of random numbers of chromosome size where the first index value is initialized to 0 and the last index value is initialized to 255. • Then sort the random array in ascending order and put random array value in the image to create the initial population for the genetic algorithm.
  • 16. CHROMOSOME STRUCTURE 0 52 91 151 153 202 221 225 1 2 3 4 5 6 7 8 Fig 3: Random array of chromosome size 17 25 13 11 29 17 21 25 31 91 1 2 3 4 5 6 7 8 9 10 (a) 0 51 91 151 153 0 202 52 221 225 1 2 3 4 5 6 7 8 9 10 (b) Fig 4: (a) The image array (b) The image array after putting random value
  • 17. FITNESS FUNCTION • The fitness of the chromosome of the is calculated by the following: fitness(x)=log(log(E(I(x)))) * n_edges(I(x)) E(I(x)) = 𝑥 𝑦 𝛿ℎ1(𝑥, 𝑦)2+𝛿𝑣1(𝑥, 𝑦)2 • Where, 𝛿ℎ1(𝑥, 𝑦)= g1(x+1,y-1) + 2g1(x+1,y) + g1(x+1,y+1) - g1(x-1,y-1) - 2g1(x-1,y) - g1(x- 1,y+1) 𝛿𝑣1(𝑥, 𝑦)= g1(x-1,y+1) + 2g1(x,y+1) + g1(x+1,y+1) - g1(x-1,y-1) - 2g1(x,y-1) - g1(x+1,y- 1)
  • 18. SELECTION ALGORITHM • Selection of individual is based on their fitness value. The individual which have more fitness value than other have more chance of going to the next generation. • The main idea of this process is to crate stronger generation than previous based on fitness value. So the individual which have grater fitness value than other have grater possibility of survival. • On the contrary the weaker individual have less possibility of survival.
  • 19. SELECTION ALGORITHM • Selection of individual is based on this equation: PS – (PS * PC) • So the number of individual that are selected for next generation is PS * PC. The process is preformed until the terminating condition is meet.
  • 20. GENETIC ALGORITHM IMPLEMENTATION CONT.. • Crossover: For crossover two chromosome have selected randomly and crossover operation has proceeded. Form the crossover operation two children have created. Therefore PS * PC individual has selected from the selection process. Two points have selected randomly from them. Finally, each new individuals are sorted in ascending order.
  • 21. GENETIC ALGORITHM IMPLEMENTATION CONT.. • Crossover: 0 29 19 161 201 75 83 51 166 225 0 55 91 151 153 202 22 221 24 225 (b) (a)
  • 22. GENETIC ALGORITHM IMPLEMENTATION CONT.. • Crossover: Random Value: 4 0 29 19 161 201 75 83 51 166 225 0 55 91 151 153 202 22 221 24 225 (b) (a)
  • 23. GENETIC ALGORITHM IMPLEMENTATION CONT.. • Crossover: Random Value: 4 0 55 91 151 201 75 83 51 166 225 0 29 19 151 153 202 22 221 24 225 (d) (c)
  • 24. GENETIC ALGORITHM IMPLEMENTATION CONT.. • After Crossover the value will be sorted: 0 51 55 75 83 91 151 166 201 225 0 19 22 24 29 151 153 202 221 225 (d) (c)
  • 25. GENETIC ALGORITHM IMPLEMENTATION CONT.. • Mutation: For mutation, a random number is selected and the number of the element is selected for mutation. If fitness value is less than mutation constant, mutation process will be preceded.  Five percent of the individual elements are selected randomly for mutation. For each element, a random integer number that should be less than or equal to the next element value and more than or equal to the previous element value is generated. This random number is replaced by element. The value of mutation constant Pm should be between 0.015 to 0.02.
  • 26. GENETIC ALGORITHM IMPLEMENTATION CONT.. • Mutation: 0 29 19 161 201 75 83 51 166 225 (a)
  • 27. GENETIC ALGORITHM IMPLEMENTATION CONT.. • Mutation: 0 29 19 161 201 75 83 51 166 225 (a)
  • 28. GENETIC ALGORITHM IMPLEMENTATION CONT.. • After Mutation and sorting: 0 29 65 72 83 122 161 166 201 225 (a)
  • 29. TERMINATING CONDITION • In genetic algorithm the number of iteration is infinity. So a terminating condition is used to stop this process and iteration. When the iteration meet the maximum number of iteration. When the difference of best fitness in two consecutive generation is less than ϵ. The value of ϵ has been considered as 0.02 * best_fitness.
  • 33. CONCLUSION • So, we found genetic algorithm for image contrast enhancement especially when input image has low dynamic range. This method works on simple chromosome structure to enhance the image. Some iteration has done on the process to get the enhanced image. To confirm the result is compared to some standards. The experiment result is satisfactory though it consumes a lot processing time. Besides, experiment results demonstrated that the enhanced images are suitable for different application field.
  • 34. FUTURE WORK • In future we were going to combine some other algorithm and to compare those result with this one.
  • 35. REFERENCE [1] Sara Hashemi, Soheila Kaiani, Navid Noroozi, Mohsen Ebrahimi Moghaddam, An image contrast enhancement method based on genetic algorithm, 11 Dec 2009, Available: http://www.elsevier.com/locate/patrec [2] M. Abdullah-Al-Wadud, Md. Hasanul Kabir, M. Ali Akber Dewan, and Oksam Chae, A dynamic histogram equalization for image contrast enhancement, IEEE Trans. Consumer Electron., vol. 53, no. 2, pp. 593- 600, May 2007. [3] Gaurav Mohan Singh, Mahipal Singh Kohli and Manoj Diwakar, A Review of Image Enhancement Techniques in Image Processing, HCTL Open IJTIR, Volume 5, September 2013. [4] S.S. Bedi, Rati Khandelw, Various Image Enhancement Techniques-A Critical Review, IJARCCE, Vol. 2, Issue 3, March 2013.