SlideShare a Scribd company logo
Digital Image Processing
Project # 2
Dr.Nathir Rawashdeh
Name : Majd Ali Khaleel
ID # :2008102003
4.Dec.2010
1-In this part I have used a built in
Matlab function(Histogram
equalization ).
Code:
i=rgb2gray(imread('majd.jpg'));
Imshow(i); j=histeq(i);
Imshow(j); imhist(i) ;imhist(j);
Figure(1-before) figure(2-after)
*firstly I have loaded an image then I converted it to
gray image ,after that I have showed it (figure # 1);
*in the second step I have used a builtin function
(histeq() )which made a histogram equalization for
loadedimage (i);after that I have showed the
result(figure # 2).
figure(3-before) figure(4-after)
*we note the image before histeq was a low contrast
(figure 3) & after equalizationthe values of intensity
distributed (figure 4)& the image became lighter.
--------------------------------------------------------------------
2- In this part I have used a builtin MATLAB function (
Gamma Correction).
Code:
i=rgb2gray(imread('majd.jpg')); imshow(i);
z=imadjust(i,[],[],0.3); figure(2) ; imshow(z);
x=imadjust(i,[],[],2); figure(3) ; imshow(x);
Note : empty matrices refer to the data ranges of inputs
and outputs
Figure(1-original) figure(2-gamma=0.3) figure(3-gam=3)
*firstly I have loaded an image then I used (imadjust)
function to make the image lighter or darker (I used
gamma correction) ,figure 1 represent the original image
& figure 2 represent the image after correction by
gamma = 0.3 ,we note the image became lighter,
figure 3 ,represent the image after correction by gamma
= 3 ,we note here the image became darker.
Note : if gamma =1 the image we stay as originalimage
as ,& if gamma <1 the image become lighter & if gamma
>1 the image become darker .
3- In this part I have written a MATLAB script that
performs spatial filtering .
My filter mask is : [1 0 -1;1 0 -1;1 0 -1];
Code:
Result:
(Before) (after)
The function of this filter :
It make image lighter than the original image .
It does like gamma correction but in inverse ,when we
increase or decrease the values of filter
For ex: put 3 instead 1 & -3 instead -1 ,the image will
become lighter and lighter (but in gamma correction the
image becomes darker)
And if we put 0.5 instead 1 & -0.5 instead -1 ,the image
will become darker and darker (but in gamma correction
the image becomes lighter )
Ad

Recommended

Image Processing using Matlab ( using a built in Highboost filtering,averagin...
Image Processing using Matlab ( using a built in Highboost filtering,averagin...
Majd Khaleel
 
Image processing with matlab
Image processing with matlab
neetirajsinh
 
Mathematical operations in image processing
Mathematical operations in image processing
Asad Ali
 
Matlab Working With Images
Matlab Working With Images
DataminingTools Inc
 
Image processing basics using matlab
Image processing basics using matlab
Ankur Tyagi
 
Digital image processing using matlab: basic transformations, filters and ope...
Digital image processing using matlab: basic transformations, filters and ope...
thanh nguyen
 
Matlab
Matlab
Aman kazmi
 
Digital Image Processing (Lab 09 and 10)
Digital Image Processing (Lab 09 and 10)
Moe Moe Myint
 
Introductory Digital Image Processing using Matlab, IIT Roorkee
Introductory Digital Image Processing using Matlab, IIT Roorkee
Vinayak Sahai
 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLAB
Sriram Emarose
 
Basics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
vkn13
 
Image enhancement using alpha rooting based hybrid technique
Image enhancement using alpha rooting based hybrid technique
Rahul Yadav
 
Ec section
Ec section
Antriksh Saxena
 
Images in matlab
Images in matlab
Ali Alvi
 
Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)
Moe Moe Myint
 
Image processing
Image processing
Pooya Sagharchiha
 
Image processing
Image processing
maheshpene
 
Active contour segmentation
Active contour segmentation
Nishant Jain
 
Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)
Moe Moe Myint
 
Image Processing Using MATLAB
Image Processing Using MATLAB
Amarjeetsingh Thakur
 
Matlab and Image Processing Workshop-SKERG
Matlab and Image Processing Workshop-SKERG
Sulaf Almagooshi
 
Report
Report
Vartika Sharma
 
Fundamentals of Image Processing & Computer Vision with MATLAB
Fundamentals of Image Processing & Computer Vision with MATLAB
Ali Ghanbarzadeh
 
Image proceesing with matlab
Image proceesing with matlab
Ashutosh Shahi
 
Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)
Moe Moe Myint
 
Image processing with matlab
Image processing with matlab
Aman Gupta
 
Programming in matlab lesson5
Programming in matlab lesson5
najmah17
 
Image processing using matlab
Image processing using matlab
SangeethaSasi1
 
Image enhancement techniques
Image enhancement techniques
Saideep
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
Ray Phan
 

More Related Content

What's hot (20)

Introductory Digital Image Processing using Matlab, IIT Roorkee
Introductory Digital Image Processing using Matlab, IIT Roorkee
Vinayak Sahai
 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLAB
Sriram Emarose
 
Basics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
vkn13
 
Image enhancement using alpha rooting based hybrid technique
Image enhancement using alpha rooting based hybrid technique
Rahul Yadav
 
Ec section
Ec section
Antriksh Saxena
 
Images in matlab
Images in matlab
Ali Alvi
 
Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)
Moe Moe Myint
 
Image processing
Image processing
Pooya Sagharchiha
 
Image processing
Image processing
maheshpene
 
Active contour segmentation
Active contour segmentation
Nishant Jain
 
Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)
Moe Moe Myint
 
Image Processing Using MATLAB
Image Processing Using MATLAB
Amarjeetsingh Thakur
 
Matlab and Image Processing Workshop-SKERG
Matlab and Image Processing Workshop-SKERG
Sulaf Almagooshi
 
Report
Report
Vartika Sharma
 
Fundamentals of Image Processing & Computer Vision with MATLAB
Fundamentals of Image Processing & Computer Vision with MATLAB
Ali Ghanbarzadeh
 
Image proceesing with matlab
Image proceesing with matlab
Ashutosh Shahi
 
Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)
Moe Moe Myint
 
Image processing with matlab
Image processing with matlab
Aman Gupta
 
Programming in matlab lesson5
Programming in matlab lesson5
najmah17
 
Image processing using matlab
Image processing using matlab
SangeethaSasi1
 
Introductory Digital Image Processing using Matlab, IIT Roorkee
Introductory Digital Image Processing using Matlab, IIT Roorkee
Vinayak Sahai
 
Introduction to Image Processing with MATLAB
Introduction to Image Processing with MATLAB
Sriram Emarose
 
Basics of Image Processing using MATLAB
Basics of Image Processing using MATLAB
vkn13
 
Image enhancement using alpha rooting based hybrid technique
Image enhancement using alpha rooting based hybrid technique
Rahul Yadav
 
Images in matlab
Images in matlab
Ali Alvi
 
Dital Image Processing (Lab 2+3+4)
Dital Image Processing (Lab 2+3+4)
Moe Moe Myint
 
Image processing
Image processing
maheshpene
 
Active contour segmentation
Active contour segmentation
Nishant Jain
 
Digital Image Processing (Lab 05)
Digital Image Processing (Lab 05)
Moe Moe Myint
 
Matlab and Image Processing Workshop-SKERG
Matlab and Image Processing Workshop-SKERG
Sulaf Almagooshi
 
Fundamentals of Image Processing & Computer Vision with MATLAB
Fundamentals of Image Processing & Computer Vision with MATLAB
Ali Ghanbarzadeh
 
Image proceesing with matlab
Image proceesing with matlab
Ashutosh Shahi
 
Digital Image Processing (Lab 06)
Digital Image Processing (Lab 06)
Moe Moe Myint
 
Image processing with matlab
Image processing with matlab
Aman Gupta
 
Programming in matlab lesson5
Programming in matlab lesson5
najmah17
 
Image processing using matlab
Image processing using matlab
SangeethaSasi1
 

Viewers also liked (19)

Image enhancement techniques
Image enhancement techniques
Saideep
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
Ray Phan
 
Image Processing using Matlab ( implement sub sampling and re sampling functi...
Image Processing using Matlab ( implement sub sampling and re sampling functi...
Majd Khaleel
 
Week15
Week15
Modell Jinayang
 
3.point operation and histogram based image enhancement
3.point operation and histogram based image enhancement
mukesh bhardwaj
 
Performance Analysis of MIMO-OFDM System Using QOSTBC Code Structure for M-PSK
Performance Analysis of MIMO-OFDM System Using QOSTBC Code Structure for M-PSK
CSCJournals
 
PPT Image Analysis(IRDE, DRDO)
PPT Image Analysis(IRDE, DRDO)
Nidhi Gopal
 
Mtech seminar1
Mtech seminar1
Barnali Dey
 
Contrast limited adaptive histogram equalization
Contrast limited adaptive histogram equalization
Er. Nancy
 
Adaptive linear equalizer
Adaptive linear equalizer
Sophia Jeanne
 
4.intensity transformations
4.intensity transformations
Yahya Alkhaldi
 
Ofdm performance analysis
Ofdm performance analysis
Saroj Dhakal
 
Multiuser MIMO-OFDM simulation framework in Matlab
Multiuser MIMO-OFDM simulation framework in Matlab
Pavel Loskot
 
EQUALIZATION
EQUALIZATION
Nidhish Singh, BA (Hons) UK, ACCA, CISI
 
Adaptive equalization
Adaptive equalization
Kamal Bhatt
 
Matlab code
Matlab code
abdalla472
 
Channel equalization
Channel equalization
Munnangi Anirudh
 
4g lte matlab
4g lte matlab
Hakim Zentani
 
Mimo ofdm by abhishek pandey
Mimo ofdm by abhishek pandey
abhi29513
 
Image enhancement techniques
Image enhancement techniques
Saideep
 
Introduction to Digital Image Processing Using MATLAB
Introduction to Digital Image Processing Using MATLAB
Ray Phan
 
Image Processing using Matlab ( implement sub sampling and re sampling functi...
Image Processing using Matlab ( implement sub sampling and re sampling functi...
Majd Khaleel
 
3.point operation and histogram based image enhancement
3.point operation and histogram based image enhancement
mukesh bhardwaj
 
Performance Analysis of MIMO-OFDM System Using QOSTBC Code Structure for M-PSK
Performance Analysis of MIMO-OFDM System Using QOSTBC Code Structure for M-PSK
CSCJournals
 
PPT Image Analysis(IRDE, DRDO)
PPT Image Analysis(IRDE, DRDO)
Nidhi Gopal
 
Contrast limited adaptive histogram equalization
Contrast limited adaptive histogram equalization
Er. Nancy
 
Adaptive linear equalizer
Adaptive linear equalizer
Sophia Jeanne
 
4.intensity transformations
4.intensity transformations
Yahya Alkhaldi
 
Ofdm performance analysis
Ofdm performance analysis
Saroj Dhakal
 
Multiuser MIMO-OFDM simulation framework in Matlab
Multiuser MIMO-OFDM simulation framework in Matlab
Pavel Loskot
 
Adaptive equalization
Adaptive equalization
Kamal Bhatt
 
Mimo ofdm by abhishek pandey
Mimo ofdm by abhishek pandey
abhi29513
 
Ad

Similar to Image Processing using Matlab ( using a built in Matlab function(Histogram equalization ). (20)

Image Processing using Matlab . Useful for beginners to learn Image Processing
Image Processing using Matlab . Useful for beginners to learn Image Processing
Ashok Kumar
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
Shajun Nisha
 
Dip 3
Dip 3
moramvenkat
 
matlab.docx
matlab.docx
AraniNavaratnarajah2
 
Basics of image processing using MATLAB
Basics of image processing using MATLAB
Mohsin Siddique
 
Digital Image Processing UNIT-2.ppt
Digital Image Processing UNIT-2.ppt
durgakru
 
Image processinglab image processing image processing
Image processinglab image processing image processing
RaghadHany
 
Digital Image Processing Using Matlab 2nd Edition Rafael C Gonzalez
Digital Image Processing Using Matlab 2nd Edition Rafael C Gonzalez
rusetidawnel
 
BE-DIP-Lab-Manual.pdf
BE-DIP-Lab-Manual.pdf
NetraBahadurKatuwal
 
Dip day1&2
Dip day1&2
nakarthik91
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
DEEPASHRI HK
 
E E 458 Project 002
E E 458 Project 002
Chad Weiss
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
Gonzalez, rafael,c.digitalimageprocessingusing matlab
Gonzalez, rafael,c.digitalimageprocessingusing matlab
urmia university of technology
 
DIP-Enhancement-Spatial.pptx
DIP-Enhancement-Spatial.pptx
NidhiSharma764884
 
Project 2-Image_Processng by Anish Hemmady
Project 2-Image_Processng by Anish Hemmady
anish h
 
Digital Image Processing - Image Enhancement.pptx
Digital Image Processing - Image Enhancement.pptx
DrGovindarajuSankara
 
The Effectiveness and Efficiency of Medical Images after Special Filtration f...
The Effectiveness and Efficiency of Medical Images after Special Filtration f...
Editor IJCATR
 
Fundamentals_of_Digital image processing_A practicle approach with MatLab.pdf
Fundamentals_of_Digital image processing_A practicle approach with MatLab.pdf
nagwaAboElenein
 
basic of Image processing using matlab
basic of Image processing using matlab
Rohit Sinha
 
Image Processing using Matlab . Useful for beginners to learn Image Processing
Image Processing using Matlab . Useful for beginners to learn Image Processing
Ashok Kumar
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
Shajun Nisha
 
Basics of image processing using MATLAB
Basics of image processing using MATLAB
Mohsin Siddique
 
Digital Image Processing UNIT-2.ppt
Digital Image Processing UNIT-2.ppt
durgakru
 
Image processinglab image processing image processing
Image processinglab image processing image processing
RaghadHany
 
Digital Image Processing Using Matlab 2nd Edition Rafael C Gonzalez
Digital Image Processing Using Matlab 2nd Edition Rafael C Gonzalez
rusetidawnel
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
DEEPASHRI HK
 
E E 458 Project 002
E E 458 Project 002
Chad Weiss
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
DIP-Enhancement-Spatial.pptx
DIP-Enhancement-Spatial.pptx
NidhiSharma764884
 
Project 2-Image_Processng by Anish Hemmady
Project 2-Image_Processng by Anish Hemmady
anish h
 
Digital Image Processing - Image Enhancement.pptx
Digital Image Processing - Image Enhancement.pptx
DrGovindarajuSankara
 
The Effectiveness and Efficiency of Medical Images after Special Filtration f...
The Effectiveness and Efficiency of Medical Images after Special Filtration f...
Editor IJCATR
 
Fundamentals_of_Digital image processing_A practicle approach with MatLab.pdf
Fundamentals_of_Digital image processing_A practicle approach with MatLab.pdf
nagwaAboElenein
 
basic of Image processing using matlab
basic of Image processing using matlab
Rohit Sinha
 
Ad

More from Majd Khaleel (8)

Geothermal Energy
Geothermal Energy
Majd Khaleel
 
Mixing and heating tank
Mixing and heating tank
Majd Khaleel
 
Wheelchair is guided by voice commands full documentation
Wheelchair is guided by voice commands full documentation
Majd Khaleel
 
Wheelchair is guided by voice commandslll
Wheelchair is guided by voice commandslll
Majd Khaleel
 
Casting
Casting
Majd Khaleel
 
Safety
Safety
Majd Khaleel
 
Bridge (statics analysis)
Bridge (statics analysis)
Majd Khaleel
 
Thermal Power Plant Station
Thermal Power Plant Station
Majd Khaleel
 
Mixing and heating tank
Mixing and heating tank
Majd Khaleel
 
Wheelchair is guided by voice commands full documentation
Wheelchair is guided by voice commands full documentation
Majd Khaleel
 
Wheelchair is guided by voice commandslll
Wheelchair is guided by voice commandslll
Majd Khaleel
 
Bridge (statics analysis)
Bridge (statics analysis)
Majd Khaleel
 
Thermal Power Plant Station
Thermal Power Plant Station
Majd Khaleel
 

Recently uploaded (20)

MATERIAL SCIENCE LECTURE NOTES FOR DIPLOMA STUDENTS
MATERIAL SCIENCE LECTURE NOTES FOR DIPLOMA STUDENTS
SAMEER VISHWAKARMA
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
International Journal of Advanced Information Technology (IJAIT)
International Journal of Advanced Information Technology (IJAIT)
ijait
 
Solar thermal – Flat plate and concentrating collectors .pptx
Solar thermal – Flat plate and concentrating collectors .pptx
jdaniabraham1
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Cadastral Maps
Cadastral Maps
Google
 
Rapid Prototyping for XR: Lecture 4 - High Level Prototyping.
Rapid Prototyping for XR: Lecture 4 - High Level Prototyping.
Mark Billinghurst
 
Proposal for folders structure division in projects.pdf
Proposal for folders structure division in projects.pdf
Mohamed Ahmed
 
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
 
retina_biometrics ruet rajshahi bangdesh.pptx
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
 
AI_Presentation (1). Artificial intelligence
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
 
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
machine learning is a advance technology
machine learning is a advance technology
ynancy893
 
MATERIAL SCIENCE LECTURE NOTES FOR DIPLOMA STUDENTS
MATERIAL SCIENCE LECTURE NOTES FOR DIPLOMA STUDENTS
SAMEER VISHWAKARMA
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
International Journal of Advanced Information Technology (IJAIT)
International Journal of Advanced Information Technology (IJAIT)
ijait
 
Solar thermal – Flat plate and concentrating collectors .pptx
Solar thermal – Flat plate and concentrating collectors .pptx
jdaniabraham1
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Cadastral Maps
Cadastral Maps
Google
 
Rapid Prototyping for XR: Lecture 4 - High Level Prototyping.
Rapid Prototyping for XR: Lecture 4 - High Level Prototyping.
Mark Billinghurst
 
Proposal for folders structure division in projects.pdf
Proposal for folders structure division in projects.pdf
Mohamed Ahmed
 
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
 
retina_biometrics ruet rajshahi bangdesh.pptx
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
 
Modern multi-proposer consensus implementations
Modern multi-proposer consensus implementations
François Garillot
 
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
 
AI_Presentation (1). Artificial intelligence
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
 
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
System design handwritten notes guidance
System design handwritten notes guidance
Shabista Imam
 
machine learning is a advance technology
machine learning is a advance technology
ynancy893
 

Image Processing using Matlab ( using a built in Matlab function(Histogram equalization ).

  • 1. Digital Image Processing Project # 2 Dr.Nathir Rawashdeh Name : Majd Ali Khaleel ID # :2008102003 4.Dec.2010
  • 2. 1-In this part I have used a built in Matlab function(Histogram equalization ). Code: i=rgb2gray(imread('majd.jpg')); Imshow(i); j=histeq(i); Imshow(j); imhist(i) ;imhist(j); Figure(1-before) figure(2-after) *firstly I have loaded an image then I converted it to gray image ,after that I have showed it (figure # 1); *in the second step I have used a builtin function (histeq() )which made a histogram equalization for
  • 3. loadedimage (i);after that I have showed the result(figure # 2). figure(3-before) figure(4-after) *we note the image before histeq was a low contrast (figure 3) & after equalizationthe values of intensity distributed (figure 4)& the image became lighter. -------------------------------------------------------------------- 2- In this part I have used a builtin MATLAB function ( Gamma Correction). Code: i=rgb2gray(imread('majd.jpg')); imshow(i); z=imadjust(i,[],[],0.3); figure(2) ; imshow(z); x=imadjust(i,[],[],2); figure(3) ; imshow(x); Note : empty matrices refer to the data ranges of inputs and outputs
  • 4. Figure(1-original) figure(2-gamma=0.3) figure(3-gam=3) *firstly I have loaded an image then I used (imadjust) function to make the image lighter or darker (I used gamma correction) ,figure 1 represent the original image & figure 2 represent the image after correction by gamma = 0.3 ,we note the image became lighter, figure 3 ,represent the image after correction by gamma = 3 ,we note here the image became darker. Note : if gamma =1 the image we stay as originalimage as ,& if gamma <1 the image become lighter & if gamma >1 the image become darker . 3- In this part I have written a MATLAB script that performs spatial filtering . My filter mask is : [1 0 -1;1 0 -1;1 0 -1];
  • 6. Result: (Before) (after) The function of this filter : It make image lighter than the original image . It does like gamma correction but in inverse ,when we increase or decrease the values of filter For ex: put 3 instead 1 & -3 instead -1 ,the image will become lighter and lighter (but in gamma correction the image becomes darker) And if we put 0.5 instead 1 & -0.5 instead -1 ,the image will become darker and darker (but in gamma correction the image becomes lighter )