SlideShare a Scribd company logo
1 of 27
4_5_Image Restoration
โ— Digital images are prone to various types of degradation such as noise, blur, and
compression artifacts due to factors like poor lighting, low-quality camera sensors,
and image transmission over the internet.
โ— Digital image restoration is the process of improving the quality of a degraded digital
image by applying various techniques to remove or reduce the degradation.
However, restoring images to their original quality is a complex process that comes
with several challenges.
โ— Image restoration can be used to remove objects, logos, text, or damaged areas in
pictures.
โ— Image restoration - 2 phases
โ— Image reconstruction
โ—‹ Fixing damaged images
โ—‹ Text removing
โ—‹ Logo removing
โ—‹ Object removing
โ— Inpainting
โ—‹ Reconstructing lost parts of images
โ—‹ Looking at the non-damaged regions
Image Restoration Techniques
1. Filtering
2. Image Deblurring
3. Deconvolution
4. Denoising
5. Inpainting
6. Super-resolution
7. Machine learning
1. Filtering
โ— Images can be restored using filters.
โ— Filters are used to remove unwanted noise and blur.
โ— Filtering is used to improve the quality of images that have been degraded due to
factors like poor lighting, camera shakes or low quality equipment.
โ— The type of filters used for operation of noisy images and estimating the clean and
original image are called restoration filters.
โ— Restoration processes use blurring and inverse blurring.
โ— Types of restoration filters.
โ—‹ Median Filter
โ—‹ Inverse Filter
โ—‹ Pseudo Inverse Filter
โ—‹ Wiener Filter
โ—‹ Gaussian Filter
Types of Filters
โ— Inverse Filter
โ—‹ Inverse Filtering is the process of receiving the input of a system from its output.
โ—‹ It is the simplest approach to restore the original image once the degradation
function is known.
โ— Pseudo Inverse Filter
โ—‹ Pseudo inverse filter is the modified version of the inverse filter and stabilized
inverse filter.
โ—‹ Pseudo inverse filtering gives more better result than inverse filtering but both
inverse and pseudo inverse are sensitive to noise.
โ— Wiener Filter (Minimum Mean Square Error Filter)
โ—‹ Wiener filter executes and optimal trade off between filtering and noise smoothing.
โ—‹ It removes the additional noise and inputs in the blurring simultaneously.
โ—‹ Wiener filter is real and even.
โ—‹ It minimizes the overall mean square error.
โ— Median Filter
โ—‹ Median filter replaces each pixel with the median value of its neighboring pixels to
remove unwanted noise.
โ— Gaussian Filter
โ—‹ Gaussian filters, on the other hand, smooth the image and reduce noise by convolving
the image with a Gaussian kernel.
โ— Drawbacks of Restoration Filters
โ—‹ Not effective when images are restored for the human eye.
โ—‹ Cannot handle the common cause of non-stationary signals and noise.
โ—‹ Cannot handle spatially variant blurring point spread function.
2. Image Deblurring
โ— Image deblurring is the process of removing blur from an image that is caused by
factors such as camera shake, motion, defocus, or atmospheric turbulence.
โ— Blur can degrade the details and clarity of an image, making it difficult to recognize
or analyze.
โ— Image deblurring aims to recover the original image from the blurred one, using
mathematical models and algorithms.
Image Deblurring Techniques
โ— Blind deconvolution attempts to estimate both the original image and the blur kernel
without any prior information, which can be a challenging and ill-posed problem.
โ— Non-blind deconvolution assumes that the blur kernel is known or can be estimated from
some additional information.
โ— Multi-image deblurring uses multiple images of the same scene that are blurred
differently to estimate the blur kernel and original image more accurately.
โ— Inverse filtering, Wiener filtering, Richardson-Lucy algorithm, iterative methods, deep
learning models, joint optimization, and fusion methods are all techniques used in image
deblurring.
3. Deconvolution
โ— Deconvolution is another powerful technique used in image processing to remove blur from
an image.
โ— It is often used in situations where an image has been degraded by a known point spread
function.
โ— Essentially, deconvolution works by reversing the convolution process that caused the blur in
the first place. This can be thought of as a kind of โ€œunblurringโ€ of the image.
โ— By removing the blur, important details and features of the image that were previously
obscured can be revealed.
โ— Deconvolution has a wide range of applications in fields such as astronomy, microscopy, and
medical imaging, and is an important tool for researchers and professionals working in these
areas.
4. Denoising
โ— Denoising is a common technique used to reduce random noise, such as Gaussian
noise, salt-and-pepper noise, or speckle noise, which can be introduced by various
factors.
โ— Filters like median filter, bilateral filter, or non-local means filter, or deep learning
models like autoencoders or generative adversarial networks may be employed for
this purpose.
5. Inpainting
โ— Inpainting is another technique used to fill in missing or damaged parts of an image, such
as scratches, dust, or occlusions.
โ— This can be done through interpolation, diffusion, or patch-based methods, or deep
learning models like convolutional neural networks or generative adversarial networks.
โ— Inpainting is the process of reconstructing lost or deteriorated parts of images and
videos.
โ— Some of the pixels have been replaced by 1s using a binary mask, on purpose, to simulate
a damaged image. Replacing pixels with 1s turns them totally black.
โ— The mask is a black and white image with patches that have the position of the image bits
6. Super-resolution
โ— Super-resolution is used to increase the resolution or quality of an image such as
low-resolution, pixelated, or blurred images.
โ— This can be done through interpolation, reconstruction, or learning-based methods,
or deep learning models like convolutional neural networks or generative
adversarial networks.
7. Machine Learning
โ— Machine learning is a subfield of artificial intelligence that allows machines to learn from
data and improve their performance over time.
โ— In the case of image restoration, machine learning algorithms are trained on a dataset of
degraded images and their corresponding restored images, enabling them to learn
patterns and relationships that can be used to restore new images.
โ— This technique has been shown to produce impressive results, and has been adopted by
many researchers and practitioners in the field of image processing.
โ— By leveraging the power of machine learning, image restoration can now be
accomplished with greater accuracy and efficiency than ever before.
Challenges in Image Restoration
1. Lack of Information
โ— Sometimes, the degradation in the image is so severe that it is impossible to restore
the image to its original quality.
โ— This can happen when there is a lack of information in the original image.
โ— For example, if an image is heavily compressed, some information may be lost,
making it impossible to restore the image to its original quality.
2. Computational Complexity
โ— Restoring high resolution images requires a lot of processing power.
โ— Researchers are constantly exploring new techniques and methods to enhance the
accuracy and quality of restored images, while also reducing the computational
demands of the process.
โ— Despite these advancements, there is still much to learn and improve upon in the
field of image restoration, as it remains a critical area of research in numerous
industries, including healthcare, entertainment, and security.
3. Overfitting
โ— When it comes to image restoration, overfitting can be a particularly significant
problem.
โ— In this scenario, the algorithm is trained on a set of images, and it learns to restore
them to their original state.
โ— However, if the algorithm becomes too specialized during training, it may not be
able to generalize well to new images that it has not seen before.
โ— This can lead to poor results, which is something that needs to be carefully
considered when using machine learning for image restoration.
Python Tools for Image Restoration
โ— OpenCV, Scikit-image, and TensorFlow are some of the most widely used libraries
for image deblurring and restoration in Python.
โ— Steps: Import the libraries, load and preprocess the images, apply the desired
methods, save or display the results.
โ— Import the required libraries
import cv2
import numpy as np
โ— Load the blurred image
blurred_image = cv2.imread('blur2.jpeg')
โ— Define the blur kernel size (it's often necessary to experiment with this value)
kernel_size = (15, 15, 3)
โ— Initialize the blur kernel with a Gaussian kernel
blur_kernel = cv2.getGaussianKernel(kernel_size[0], 1)
blur_kernel = np.outer(blur_kernel, blur_kernel)
โ— Perform Wiener deconvolution
restored_image = cv2.filter2D(blurred_image, -1,
blur_kernel)
import matplotlib.pyplot as plt
plt.subplot(1, 2, 1)
plt.title("Original")
plt.imshow(blurred_image)
plt.subplot(1, 2, 2)
plt.title("Restored Image")
plt.imshow(restored_image)
plt.show()

More Related Content

Similar to Image Restoration mage restoration is the process of improving the quality of a degraded digital image by applying various techniques to remove or reduce the degradation.pptx

Dip lect2-Machine Vision Fundamentals
Dip  lect2-Machine Vision Fundamentals Dip  lect2-Machine Vision Fundamentals
Dip lect2-Machine Vision Fundamentals Abdul Abbasi
ย 
IRJET- Low Light Image Enhancement using Convolutional Neural Network
IRJET-  	  Low Light Image Enhancement using Convolutional Neural NetworkIRJET-  	  Low Light Image Enhancement using Convolutional Neural Network
IRJET- Low Light Image Enhancement using Convolutional Neural NetworkIRJET Journal
ย 
Image processing and compression.pptx
Image processing and compression.pptxImage processing and compression.pptx
Image processing and compression.pptxdudoo1
ย 
Survey on Image Integration of Misaligned Images
Survey on Image Integration of Misaligned ImagesSurvey on Image Integration of Misaligned Images
Survey on Image Integration of Misaligned ImagesIRJET Journal
ย 
IRJET- Image De-Blurring using Blind De-Convolution Algorithm
IRJET-  	  Image De-Blurring using Blind De-Convolution AlgorithmIRJET-  	  Image De-Blurring using Blind De-Convolution Algorithm
IRJET- Image De-Blurring using Blind De-Convolution AlgorithmIRJET Journal
ย 
A review on image enhancement techniques
A review on image enhancement techniquesA review on image enhancement techniques
A review on image enhancement techniquesIJEACS
ย 
A study to improve the quality of image enhancement
A study to improve the quality of image enhancementA study to improve the quality of image enhancement
A study to improve the quality of image enhancementeSAT Publishing House
ย 
Image processing
Image processing Image processing
Image processing Madhushree Ghosh
ย 
Brain tumor pattern recognition using correlation filter
Brain tumor pattern recognition using correlation filterBrain tumor pattern recognition using correlation filter
Brain tumor pattern recognition using correlation filtereSAT Publishing House
ย 
Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Suraj Aavula
ย 
X-Ray Image Enhancement using CLAHE Method
X-Ray Image Enhancement using CLAHE MethodX-Ray Image Enhancement using CLAHE Method
X-Ray Image Enhancement using CLAHE MethodIRJET Journal
ย 
Computer Vision.pptx
Computer Vision.pptxComputer Vision.pptx
Computer Vision.pptxGDSCIIITDHARWAD
ย 
IRJET- A Review on Various Restoration Techniques in Digital Image Processing
IRJET- A Review on Various Restoration Techniques in Digital Image ProcessingIRJET- A Review on Various Restoration Techniques in Digital Image Processing
IRJET- A Review on Various Restoration Techniques in Digital Image ProcessingIRJET Journal
ย 
Image enhancement
Image enhancement Image enhancement
Image enhancement SimiAttri
ย 
An Efficient Approach of Segmentation and Blind Deconvolution in Image Restor...
An Efficient Approach of Segmentation and Blind Deconvolution in Image Restor...An Efficient Approach of Segmentation and Blind Deconvolution in Image Restor...
An Efficient Approach of Segmentation and Blind Deconvolution in Image Restor...iosrjce
ย 
Iaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurredIaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurredIaetsd Iaetsd
ย 
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...IRJET Journal
ย 

Similar to Image Restoration mage restoration is the process of improving the quality of a degraded digital image by applying various techniques to remove or reduce the degradation.pptx (20)

Dip lect2-Machine Vision Fundamentals
Dip  lect2-Machine Vision Fundamentals Dip  lect2-Machine Vision Fundamentals
Dip lect2-Machine Vision Fundamentals
ย 
IRJET- Low Light Image Enhancement using Convolutional Neural Network
IRJET-  	  Low Light Image Enhancement using Convolutional Neural NetworkIRJET-  	  Low Light Image Enhancement using Convolutional Neural Network
IRJET- Low Light Image Enhancement using Convolutional Neural Network
ย 
Anits dip
Anits dipAnits dip
Anits dip
ย 
[IJET-V1I6P16] Authors : Indraja Mali , Saumya Saxena ,Padmaja Desai , Ajay G...
[IJET-V1I6P16] Authors : Indraja Mali , Saumya Saxena ,Padmaja Desai , Ajay G...[IJET-V1I6P16] Authors : Indraja Mali , Saumya Saxena ,Padmaja Desai , Ajay G...
[IJET-V1I6P16] Authors : Indraja Mali , Saumya Saxena ,Padmaja Desai , Ajay G...
ย 
Image processing and compression.pptx
Image processing and compression.pptxImage processing and compression.pptx
Image processing and compression.pptx
ย 
Survey on Image Integration of Misaligned Images
Survey on Image Integration of Misaligned ImagesSurvey on Image Integration of Misaligned Images
Survey on Image Integration of Misaligned Images
ย 
IRJET- Image De-Blurring using Blind De-Convolution Algorithm
IRJET-  	  Image De-Blurring using Blind De-Convolution AlgorithmIRJET-  	  Image De-Blurring using Blind De-Convolution Algorithm
IRJET- Image De-Blurring using Blind De-Convolution Algorithm
ย 
A review on image enhancement techniques
A review on image enhancement techniquesA review on image enhancement techniques
A review on image enhancement techniques
ย 
A study to improve the quality of image enhancement
A study to improve the quality of image enhancementA study to improve the quality of image enhancement
A study to improve the quality of image enhancement
ย 
Image processing
Image processing Image processing
Image processing
ย 
Brain tumor pattern recognition using correlation filter
Brain tumor pattern recognition using correlation filterBrain tumor pattern recognition using correlation filter
Brain tumor pattern recognition using correlation filter
ย 
Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)
ย 
X-Ray Image Enhancement using CLAHE Method
X-Ray Image Enhancement using CLAHE MethodX-Ray Image Enhancement using CLAHE Method
X-Ray Image Enhancement using CLAHE Method
ย 
Computer Vision.pptx
Computer Vision.pptxComputer Vision.pptx
Computer Vision.pptx
ย 
IRJET- A Review on Various Restoration Techniques in Digital Image Processing
IRJET- A Review on Various Restoration Techniques in Digital Image ProcessingIRJET- A Review on Various Restoration Techniques in Digital Image Processing
IRJET- A Review on Various Restoration Techniques in Digital Image Processing
ย 
Image enhancement
Image enhancement Image enhancement
Image enhancement
ย 
F017614146
F017614146F017614146
F017614146
ย 
An Efficient Approach of Segmentation and Blind Deconvolution in Image Restor...
An Efficient Approach of Segmentation and Blind Deconvolution in Image Restor...An Efficient Approach of Segmentation and Blind Deconvolution in Image Restor...
An Efficient Approach of Segmentation and Blind Deconvolution in Image Restor...
ย 
Iaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurredIaetsd deblurring of noisy or blurred
Iaetsd deblurring of noisy or blurred
ย 
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
A Novel Framework For Preprocessing Of Breast Ultra Sound Images By Combining...
ย 

Recently uploaded

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
ย 
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 17Celine George
ย 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
ย 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
ย 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
ย 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
ย 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
ย 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
ย 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
ย 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
ย 
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).pptxEsquimalt MFRC
ย 
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 FellowsMebane Rash
ย 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
ย 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
ย 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
ย 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
ย 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
ย 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
ย 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
ย 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
ย 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
ย 
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
ย 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
ย 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
ย 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
ย 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
ย 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
ย 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
ย 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
ย 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
ย 
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
ย 
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
ย 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
ย 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ย 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
ย 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
ย 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
ย 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
ย 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
ย 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
ย 

Image Restoration mage restoration is the process of improving the quality of a degraded digital image by applying various techniques to remove or reduce the degradation.pptx

  • 2. โ— Digital images are prone to various types of degradation such as noise, blur, and compression artifacts due to factors like poor lighting, low-quality camera sensors, and image transmission over the internet. โ— Digital image restoration is the process of improving the quality of a degraded digital image by applying various techniques to remove or reduce the degradation. However, restoring images to their original quality is a complex process that comes with several challenges. โ— Image restoration can be used to remove objects, logos, text, or damaged areas in pictures.
  • 3. โ— Image restoration - 2 phases โ— Image reconstruction โ—‹ Fixing damaged images โ—‹ Text removing โ—‹ Logo removing โ—‹ Object removing โ— Inpainting โ—‹ Reconstructing lost parts of images โ—‹ Looking at the non-damaged regions
  • 4. Image Restoration Techniques 1. Filtering 2. Image Deblurring 3. Deconvolution 4. Denoising 5. Inpainting 6. Super-resolution 7. Machine learning
  • 5. 1. Filtering โ— Images can be restored using filters. โ— Filters are used to remove unwanted noise and blur. โ— Filtering is used to improve the quality of images that have been degraded due to factors like poor lighting, camera shakes or low quality equipment. โ— The type of filters used for operation of noisy images and estimating the clean and original image are called restoration filters. โ— Restoration processes use blurring and inverse blurring.
  • 6. โ— Types of restoration filters. โ—‹ Median Filter โ—‹ Inverse Filter โ—‹ Pseudo Inverse Filter โ—‹ Wiener Filter โ—‹ Gaussian Filter
  • 7. Types of Filters โ— Inverse Filter โ—‹ Inverse Filtering is the process of receiving the input of a system from its output. โ—‹ It is the simplest approach to restore the original image once the degradation function is known. โ— Pseudo Inverse Filter โ—‹ Pseudo inverse filter is the modified version of the inverse filter and stabilized inverse filter. โ—‹ Pseudo inverse filtering gives more better result than inverse filtering but both inverse and pseudo inverse are sensitive to noise.
  • 8. โ— Wiener Filter (Minimum Mean Square Error Filter) โ—‹ Wiener filter executes and optimal trade off between filtering and noise smoothing. โ—‹ It removes the additional noise and inputs in the blurring simultaneously. โ—‹ Wiener filter is real and even. โ—‹ It minimizes the overall mean square error. โ— Median Filter โ—‹ Median filter replaces each pixel with the median value of its neighboring pixels to remove unwanted noise.
  • 9. โ— Gaussian Filter โ—‹ Gaussian filters, on the other hand, smooth the image and reduce noise by convolving the image with a Gaussian kernel.
  • 10. โ— Drawbacks of Restoration Filters โ—‹ Not effective when images are restored for the human eye. โ—‹ Cannot handle the common cause of non-stationary signals and noise. โ—‹ Cannot handle spatially variant blurring point spread function.
  • 11. 2. Image Deblurring โ— Image deblurring is the process of removing blur from an image that is caused by factors such as camera shake, motion, defocus, or atmospheric turbulence. โ— Blur can degrade the details and clarity of an image, making it difficult to recognize or analyze. โ— Image deblurring aims to recover the original image from the blurred one, using mathematical models and algorithms.
  • 12. Image Deblurring Techniques โ— Blind deconvolution attempts to estimate both the original image and the blur kernel without any prior information, which can be a challenging and ill-posed problem. โ— Non-blind deconvolution assumes that the blur kernel is known or can be estimated from some additional information. โ— Multi-image deblurring uses multiple images of the same scene that are blurred differently to estimate the blur kernel and original image more accurately. โ— Inverse filtering, Wiener filtering, Richardson-Lucy algorithm, iterative methods, deep learning models, joint optimization, and fusion methods are all techniques used in image deblurring.
  • 13. 3. Deconvolution โ— Deconvolution is another powerful technique used in image processing to remove blur from an image. โ— It is often used in situations where an image has been degraded by a known point spread function. โ— Essentially, deconvolution works by reversing the convolution process that caused the blur in the first place. This can be thought of as a kind of โ€œunblurringโ€ of the image. โ— By removing the blur, important details and features of the image that were previously obscured can be revealed. โ— Deconvolution has a wide range of applications in fields such as astronomy, microscopy, and medical imaging, and is an important tool for researchers and professionals working in these areas.
  • 14. 4. Denoising โ— Denoising is a common technique used to reduce random noise, such as Gaussian noise, salt-and-pepper noise, or speckle noise, which can be introduced by various factors. โ— Filters like median filter, bilateral filter, or non-local means filter, or deep learning models like autoencoders or generative adversarial networks may be employed for this purpose.
  • 15. 5. Inpainting โ— Inpainting is another technique used to fill in missing or damaged parts of an image, such as scratches, dust, or occlusions. โ— This can be done through interpolation, diffusion, or patch-based methods, or deep learning models like convolutional neural networks or generative adversarial networks. โ— Inpainting is the process of reconstructing lost or deteriorated parts of images and videos. โ— Some of the pixels have been replaced by 1s using a binary mask, on purpose, to simulate a damaged image. Replacing pixels with 1s turns them totally black. โ— The mask is a black and white image with patches that have the position of the image bits
  • 16. 6. Super-resolution โ— Super-resolution is used to increase the resolution or quality of an image such as low-resolution, pixelated, or blurred images. โ— This can be done through interpolation, reconstruction, or learning-based methods, or deep learning models like convolutional neural networks or generative adversarial networks.
  • 17. 7. Machine Learning โ— Machine learning is a subfield of artificial intelligence that allows machines to learn from data and improve their performance over time. โ— In the case of image restoration, machine learning algorithms are trained on a dataset of degraded images and their corresponding restored images, enabling them to learn patterns and relationships that can be used to restore new images. โ— This technique has been shown to produce impressive results, and has been adopted by many researchers and practitioners in the field of image processing. โ— By leveraging the power of machine learning, image restoration can now be accomplished with greater accuracy and efficiency than ever before.
  • 18. Challenges in Image Restoration
  • 19. 1. Lack of Information โ— Sometimes, the degradation in the image is so severe that it is impossible to restore the image to its original quality. โ— This can happen when there is a lack of information in the original image. โ— For example, if an image is heavily compressed, some information may be lost, making it impossible to restore the image to its original quality.
  • 20. 2. Computational Complexity โ— Restoring high resolution images requires a lot of processing power. โ— Researchers are constantly exploring new techniques and methods to enhance the accuracy and quality of restored images, while also reducing the computational demands of the process. โ— Despite these advancements, there is still much to learn and improve upon in the field of image restoration, as it remains a critical area of research in numerous industries, including healthcare, entertainment, and security.
  • 21. 3. Overfitting โ— When it comes to image restoration, overfitting can be a particularly significant problem. โ— In this scenario, the algorithm is trained on a set of images, and it learns to restore them to their original state. โ— However, if the algorithm becomes too specialized during training, it may not be able to generalize well to new images that it has not seen before. โ— This can lead to poor results, which is something that needs to be carefully considered when using machine learning for image restoration.
  • 22.
  • 23. Python Tools for Image Restoration โ— OpenCV, Scikit-image, and TensorFlow are some of the most widely used libraries for image deblurring and restoration in Python. โ— Steps: Import the libraries, load and preprocess the images, apply the desired methods, save or display the results.
  • 24. โ— Import the required libraries import cv2 import numpy as np โ— Load the blurred image blurred_image = cv2.imread('blur2.jpeg')
  • 25. โ— Define the blur kernel size (it's often necessary to experiment with this value) kernel_size = (15, 15, 3) โ— Initialize the blur kernel with a Gaussian kernel blur_kernel = cv2.getGaussianKernel(kernel_size[0], 1) blur_kernel = np.outer(blur_kernel, blur_kernel)
  • 26. โ— Perform Wiener deconvolution restored_image = cv2.filter2D(blurred_image, -1, blur_kernel)
  • 27. import matplotlib.pyplot as plt plt.subplot(1, 2, 1) plt.title("Original") plt.imshow(blurred_image) plt.subplot(1, 2, 2) plt.title("Restored Image") plt.imshow(restored_image) plt.show()