SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Ali Abdul-Zahraa
alia.alshamerty@student.uokufa.edu.iq
Before we can successfully merge multiple
photographs, we need to characterize the
functions that map incoming irradiance into
pixel values and also the amounts of noise
present each image.
Radiometric response function
Vignetting
point spread function
Image sensing pipeline: block diagram showing the various sources of
noise as well as the typical digital post-processing steps
which maps photons arriving at the lens
into digital values stored in the image file.
a number of factors affect how the intensity
of light arriving at the lens ends up being
mapped into stored digital values.
aperture and shutter speed:
 The shutter speed : directly controls the amount of light
reaching the sensor.
 (For bright scenes, where a large aperture or slow
shutter speed are desired to get a shallow depth of field
or motion blur, neutral density filters are sometimes
used by photographers.
 For dynamic scenes, the shutter speed also
determines the amount of motion blur in the resulting
picture.
 Usually, a higher shutter speed (less motion blur)
The analog to digital (A/D) converter
 on the sensing chip applies an electronic gain,
usually controlled by the ISO setting on your
camera.
Shutter and aperture are controls for
adjusting how much light comes into the
camera.
How much light is needed is determined by
the sensitivity of the medium used.
 That was as true for glass plates as it is
for film and now digital sensors. Over the
years that sensitivity has been expressed
in various ways, most recently as ASA and
now ISO.
 If you don't have a lot of light, or need a
fast shutter speed, you would probably
raise the ISO.
For dynamic scenes you need more ISO
value to treat shutter speed
Finally, a standard gamma is applied to the
intensities in each color channel and the
colors are converted into YCbCr format
before being transformed by a DCT,
quantized, and then compressed into the
JPEG format
where k is the coefficient (frequency) index
In this, there is no sub-sampling of the
chroma components, and can be as well
referred and used directly as a RGB
image.
High-end scanners / cameras / capture
devices use this format to not lose any
data.
Image sensing pipeline: block diagram showing the various sources of
noise as well as the typical digital post-processing steps
In addition to knowing the camera
response function, it is also often important
to know the amount of noise being injected
under a particular camera setting.
The simplest characterization of noise is a
single standard deviation, usually
measured in gray levels, independent of
pixel value.
%Read in an image. Because the image is a truecolor image, the
example converts it to grayscale.
RGB = imread('saturn.png');
I = rgb2gray(RGB);
%The example then add Gaussian noise to the image and then
displays the image.
J = imnoise(I,'gaussian',0,0.025);
imshow(J)
%Remove the noise, using the wiener2 function. Again, the figure only
shows a portion of the image
K = wiener2(J,[5 5]);
figure, imshow(K)
 In photography and optics, vignetting is a
reduction of an image's brightness or
saturation at the periphery compared to the
image center.
 A common problem with using wide-angle
and wide-aperture lenses is that the image
tends to darken in the corners
 This problem is generally known as
vignetting and comes in several different
forms, including natural, optical, and
mechanical vignetting
Mechanical vignetting
• occurs when light beams emanating from object
points located off-axis are partially blocked by
external objects such as thick or stacked filters,
secondary lenses, and improper lens hoods.
Optical vignetting
• This type of vignetting is caused by the physical
dimensions of a multiple element lens.
• Rear elements are shaded by elements in front of
them, which reduces the effective lens opening for
off-axis incident light.
• The result is a gradual decrease in light intensity
towards the image periphery.
Natural vignetting
• brightness depends on theta - angle between
surface normal (N) and the direction to the light
source (L)
I = Ip Kd cos(Ɵ) or I = Ip Kd (N' * L')
Post-shoot
• For artistic effect, vignetting is sometimes applied
to an otherwise un-vignetted photograph and can
be achieved by burning the outer edges of the
photograph or using digital imaging techniques,
such as masking darkened edges
img=imread('v2.jpg');
av=mean(img(:));
[m,n]=size(img)
subplot(1,2,1)
imshow(img)
for i=1:m
for j=1:n
if (av-img(i,j))<(av/2)
img(i,j)=img(i,j)+(av/2);
end
end
end
subplot(1,2,2)
imshow(img)
Also if we want to remove it , we can
compute overall brightness and compute
average of it and then increase low pixels
values compared with average to remove
low values .
 Most lenses including the human lens are not
perfect optical systems.
 As a result when visual stimuli are passed
through the cornea and lens the stimuli
undergo a certain degree of degradation.
 The question is how can this degradation be
represented? Well suppose you have an
exceedingly small dot of light, a point, and
project it through a lens. The image of this
point will not be the same as the original. The
lens will introduce a small amount of blur.
 point spread function (PSF)
I = imread('peppers.png');
I = I(60+[1:256],222+[1:256],:); % crop the image
figure; imshow(I); title('Original Image');
LEN = 31;
THETA = 11;
PSF = fspecial('motion',LEN,THETA); % create PSF
Blurred = imfilter(I,PSF,'circular','conv');
figure; imshow(Blurred); title('Blurred Image');
% Load image
I = im2double(Blurred);
figure(4); imshow(I); title('Source image');
%PSF
PSF = fspecial('motion', 14, 0);
noise_mean = 0;
noise_var = 0.0001;
estimated_nsr = noise_var / var(I(:));
I = edgetaper(I, PSF);
figure(5); imshow(deconvwnr(I, PSF, estimated_nsr)); title('Result')
I = im2double(imread('cameraman.tif'));
imshow(I);
title('Original Image (courtesy of MIT)');
%Simulate a motion blur.
LEN = 21;
THETA = 11;
PSF = fspecial('motion', LEN, THETA);
blurred = imfilter(I, PSF, 'conv', 'circular');
figure, imshow(blurred)
%Simulate additive noise.
noise_mean = 0;
noise_var = 0.0001;
blurred_noisy = imnoise(blurred, 'gaussian', ...
noise_mean, noise_var);
figure, imshow(blurred_noisy)
title('Simulate Blur and Noise')
estimated_nsr = 0;
wnr2 = deconvwnr(blurred_noisy, PSF, estimated_nsr);
figure, imshow(wnr2)
title('Restoration of Blurred, Noisy Image Using NSR = 0')
estimated_nsr = noise_var / var(I(:));
wnr3 = deconvwnr(blurred_noisy, PSF, estimated_nsr);
figure, imshow(wnr3)
title('Restoration of Blurred, Noisy Image Using Estimated NSR');

Weitere ähnliche Inhalte

Was ist angesagt?

Image quality assessment and statistical evaluation
Image quality assessment and statistical evaluationImage quality assessment and statistical evaluation
Image quality assessment and statistical evaluation
DocumentStory
 
Spatial enhancement
Spatial enhancement Spatial enhancement
Spatial enhancement
abinarkt
 

Was ist angesagt? (20)

Image quality assessment and statistical evaluation
Image quality assessment and statistical evaluationImage quality assessment and statistical evaluation
Image quality assessment and statistical evaluation
 
Shadow removal using Image Processing (Case study and code Implementation)
Shadow removal using Image Processing (Case study and code Implementation)Shadow removal using Image Processing (Case study and code Implementation)
Shadow removal using Image Processing (Case study and code Implementation)
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Visual realism
Visual realismVisual realism
Visual realism
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Segmentation
SegmentationSegmentation
Segmentation
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Lecture+ +raster+&+random+scan+systems
Lecture+ +raster+&+random+scan+systemsLecture+ +raster+&+random+scan+systems
Lecture+ +raster+&+random+scan+systems
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Digital image classification22oct
Digital image classification22octDigital image classification22oct
Digital image classification22oct
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
illumination model in Computer Graphics by irru pychukar
illumination model in Computer Graphics by irru pychukarillumination model in Computer Graphics by irru pychukar
illumination model in Computer Graphics by irru pychukar
 
Digital Image Processing (DIP)
Digital Image Processing (DIP)Digital Image Processing (DIP)
Digital Image Processing (DIP)
 
Spatial enhancement
Spatial enhancement Spatial enhancement
Spatial enhancement
 
Processing of satellite_image_using_digi
Processing of satellite_image_using_digiProcessing of satellite_image_using_digi
Processing of satellite_image_using_digi
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
 
Digital image processing 1
Digital  image processing 1Digital  image processing 1
Digital image processing 1
 
07 Image classification.pptx
07 Image classification.pptx07 Image classification.pptx
07 Image classification.pptx
 
Image Classification Techniques in GIS
Image Classification Techniques in GISImage Classification Techniques in GIS
Image Classification Techniques in GIS
 

Andere mochten auch (7)

Study and Comparison of H-R Diagrams of Open Clusters
Study and Comparison of H-R Diagrams of Open ClustersStudy and Comparison of H-R Diagrams of Open Clusters
Study and Comparison of H-R Diagrams of Open Clusters
 
Photometry
PhotometryPhotometry
Photometry
 
Stars galaxies powerpoint
Stars galaxies powerpointStars galaxies powerpoint
Stars galaxies powerpoint
 
CCD (Charge Coupled Device)
CCD (Charge Coupled Device)CCD (Charge Coupled Device)
CCD (Charge Coupled Device)
 
Cluster Analysis
Cluster AnalysisCluster Analysis
Cluster Analysis
 
Astronomy presentation
Astronomy presentationAstronomy presentation
Astronomy presentation
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 

Ähnlich wie Photometric calibration

3.introduction onwards deepa
3.introduction onwards deepa3.introduction onwards deepa
3.introduction onwards deepa
Safalsha Babu
 

Ähnlich wie Photometric calibration (20)

DIP PPT (1).pptx
DIP PPT (1).pptxDIP PPT (1).pptx
DIP PPT (1).pptx
 
Digital.cc
Digital.ccDigital.cc
Digital.cc
 
Image processing
Image processingImage processing
Image processing
 
Seema dip
Seema dipSeema dip
Seema dip
 
IMAGE PROCESSING.pptx
IMAGE PROCESSING.pptxIMAGE PROCESSING.pptx
IMAGE PROCESSING.pptx
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
An Introduction to Image Processing and Artificial Intelligence
An Introduction to Image Processing and Artificial IntelligenceAn Introduction to Image Processing and Artificial Intelligence
An Introduction to Image Processing and Artificial Intelligence
 
An Introduction to digital image processing
An Introduction to digital image processingAn Introduction to digital image processing
An Introduction to digital image processing
 
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
 
motion and feature based person tracking in survillance videos
motion and feature based person tracking in survillance videosmotion and feature based person tracking in survillance videos
motion and feature based person tracking in survillance videos
 
Image processing sw & hw
Image processing sw & hwImage processing sw & hw
Image processing sw & hw
 
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
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing Basics
 
IMPROVING IMAGE RESOLUTION THROUGH THE CRA ALGORITHM INVOLVED RECYCLING PROCE...
IMPROVING IMAGE RESOLUTION THROUGH THE CRA ALGORITHM INVOLVED RECYCLING PROCE...IMPROVING IMAGE RESOLUTION THROUGH THE CRA ALGORITHM INVOLVED RECYCLING PROCE...
IMPROVING IMAGE RESOLUTION THROUGH THE CRA ALGORITHM INVOLVED RECYCLING PROCE...
 
Improving image resolution through the cra algorithm involved recycling proce...
Improving image resolution through the cra algorithm involved recycling proce...Improving image resolution through the cra algorithm involved recycling proce...
Improving image resolution through the cra algorithm involved recycling proce...
 
Dip sdit 7
Dip sdit 7Dip sdit 7
Dip sdit 7
 
A SURVEY : On Image Denoising and its Various Techniques
A SURVEY :  On Image Denoising and its Various TechniquesA SURVEY :  On Image Denoising and its Various Techniques
A SURVEY : On Image Denoising and its Various Techniques
 
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
 
Biometric simulator for visually impaired (1)
Biometric simulator for visually impaired (1)Biometric simulator for visually impaired (1)
Biometric simulator for visually impaired (1)
 
3.introduction onwards deepa
3.introduction onwards deepa3.introduction onwards deepa
3.introduction onwards deepa
 

Mehr von Ali A Jalil (10)

Clean Code: Successive Refinement
Clean Code: Successive RefinementClean Code: Successive Refinement
Clean Code: Successive Refinement
 
And or graph
And or graphAnd or graph
And or graph
 
Markov model
Markov modelMarkov model
Markov model
 
Image classification
Image classificationImage classification
Image classification
 
HDR
HDRHDR
HDR
 
Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection Network
 
Polygon drawing
Polygon drawingPolygon drawing
Polygon drawing
 
Polygon drawing
Polygon drawingPolygon drawing
Polygon drawing
 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and Extaction
 
Text mining
Text miningText mining
Text mining
 

Kürzlich hochgeladen

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Kürzlich hochgeladen (20)

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.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...
 
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...
 

Photometric calibration

  • 2. Before we can successfully merge multiple photographs, we need to characterize the functions that map incoming irradiance into pixel values and also the amounts of noise present each image.
  • 4. Image sensing pipeline: block diagram showing the various sources of noise as well as the typical digital post-processing steps
  • 5. which maps photons arriving at the lens into digital values stored in the image file. a number of factors affect how the intensity of light arriving at the lens ends up being mapped into stored digital values.
  • 6. aperture and shutter speed:  The shutter speed : directly controls the amount of light reaching the sensor.  (For bright scenes, where a large aperture or slow shutter speed are desired to get a shallow depth of field or motion blur, neutral density filters are sometimes used by photographers.  For dynamic scenes, the shutter speed also determines the amount of motion blur in the resulting picture.  Usually, a higher shutter speed (less motion blur)
  • 7. The analog to digital (A/D) converter  on the sensing chip applies an electronic gain, usually controlled by the ISO setting on your camera.
  • 8. Shutter and aperture are controls for adjusting how much light comes into the camera. How much light is needed is determined by the sensitivity of the medium used.  That was as true for glass plates as it is for film and now digital sensors. Over the years that sensitivity has been expressed in various ways, most recently as ASA and now ISO.
  • 9.  If you don't have a lot of light, or need a fast shutter speed, you would probably raise the ISO. For dynamic scenes you need more ISO value to treat shutter speed
  • 10. Finally, a standard gamma is applied to the intensities in each color channel and the colors are converted into YCbCr format before being transformed by a DCT, quantized, and then compressed into the JPEG format where k is the coefficient (frequency) index
  • 11. In this, there is no sub-sampling of the chroma components, and can be as well referred and used directly as a RGB image. High-end scanners / cameras / capture devices use this format to not lose any data.
  • 12. Image sensing pipeline: block diagram showing the various sources of noise as well as the typical digital post-processing steps
  • 13.
  • 14. In addition to knowing the camera response function, it is also often important to know the amount of noise being injected under a particular camera setting. The simplest characterization of noise is a single standard deviation, usually measured in gray levels, independent of pixel value.
  • 15.
  • 16. %Read in an image. Because the image is a truecolor image, the example converts it to grayscale. RGB = imread('saturn.png'); I = rgb2gray(RGB); %The example then add Gaussian noise to the image and then displays the image. J = imnoise(I,'gaussian',0,0.025); imshow(J) %Remove the noise, using the wiener2 function. Again, the figure only shows a portion of the image K = wiener2(J,[5 5]); figure, imshow(K)
  • 17.  In photography and optics, vignetting is a reduction of an image's brightness or saturation at the periphery compared to the image center.  A common problem with using wide-angle and wide-aperture lenses is that the image tends to darken in the corners  This problem is generally known as vignetting and comes in several different forms, including natural, optical, and mechanical vignetting
  • 18.
  • 19. Mechanical vignetting • occurs when light beams emanating from object points located off-axis are partially blocked by external objects such as thick or stacked filters, secondary lenses, and improper lens hoods.
  • 20. Optical vignetting • This type of vignetting is caused by the physical dimensions of a multiple element lens. • Rear elements are shaded by elements in front of them, which reduces the effective lens opening for off-axis incident light. • The result is a gradual decrease in light intensity towards the image periphery.
  • 21. Natural vignetting • brightness depends on theta - angle between surface normal (N) and the direction to the light source (L) I = Ip Kd cos(Ɵ) or I = Ip Kd (N' * L')
  • 22. Post-shoot • For artistic effect, vignetting is sometimes applied to an otherwise un-vignetted photograph and can be achieved by burning the outer edges of the photograph or using digital imaging techniques, such as masking darkened edges
  • 23.
  • 24. img=imread('v2.jpg'); av=mean(img(:)); [m,n]=size(img) subplot(1,2,1) imshow(img) for i=1:m for j=1:n if (av-img(i,j))<(av/2) img(i,j)=img(i,j)+(av/2); end end end subplot(1,2,2) imshow(img)
  • 25. Also if we want to remove it , we can compute overall brightness and compute average of it and then increase low pixels values compared with average to remove low values .
  • 26.  Most lenses including the human lens are not perfect optical systems.  As a result when visual stimuli are passed through the cornea and lens the stimuli undergo a certain degree of degradation.  The question is how can this degradation be represented? Well suppose you have an exceedingly small dot of light, a point, and project it through a lens. The image of this point will not be the same as the original. The lens will introduce a small amount of blur.  point spread function (PSF)
  • 27. I = imread('peppers.png'); I = I(60+[1:256],222+[1:256],:); % crop the image figure; imshow(I); title('Original Image'); LEN = 31; THETA = 11; PSF = fspecial('motion',LEN,THETA); % create PSF Blurred = imfilter(I,PSF,'circular','conv'); figure; imshow(Blurred); title('Blurred Image'); % Load image I = im2double(Blurred); figure(4); imshow(I); title('Source image'); %PSF PSF = fspecial('motion', 14, 0); noise_mean = 0; noise_var = 0.0001; estimated_nsr = noise_var / var(I(:)); I = edgetaper(I, PSF); figure(5); imshow(deconvwnr(I, PSF, estimated_nsr)); title('Result')
  • 28. I = im2double(imread('cameraman.tif')); imshow(I); title('Original Image (courtesy of MIT)'); %Simulate a motion blur. LEN = 21; THETA = 11; PSF = fspecial('motion', LEN, THETA); blurred = imfilter(I, PSF, 'conv', 'circular'); figure, imshow(blurred) %Simulate additive noise. noise_mean = 0; noise_var = 0.0001; blurred_noisy = imnoise(blurred, 'gaussian', ... noise_mean, noise_var); figure, imshow(blurred_noisy) title('Simulate Blur and Noise') estimated_nsr = 0; wnr2 = deconvwnr(blurred_noisy, PSF, estimated_nsr); figure, imshow(wnr2) title('Restoration of Blurred, Noisy Image Using NSR = 0') estimated_nsr = noise_var / var(I(:)); wnr3 = deconvwnr(blurred_noisy, PSF, estimated_nsr); figure, imshow(wnr3) title('Restoration of Blurred, Noisy Image Using Estimated NSR');

Hinweis der Redaktion

  1. التضليل