Image Restoration II & Morphological Processing

Slides:



Advertisements
Similar presentations
Digital Image Processing Lecture 11: Image Restoration Prof. Charlene Tsai.
Advertisements

Digital Image Processing
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration.
DIGITAL IMAGE PROCESSING
Applications of Fourier Analysis in Image Recovery Kang Guo TJHSST Computer Systems Lab
ECE 472/572 - Digital Image Processing Lecture 8 - Image Restoration – Linear, Position-Invariant Degradations 10/10/11.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Digital Image Processing
Digital Image Processing / Fall 2003
Digital Image Processing Chapter 5: Image Restoration.
Image Enhancement in the Frequency Domain Part II Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Gholizadeh M.Gholizadeh
Chapter 5 Image Restoration. Preview Goal: improve an image in some predefined sense. Image enhancement: subjective process Image restoration: objective.
Digital Image Processing Lecture 4 Image Restoration and Reconstruction Second Semester Azad University Islamshar Branch
1 Chapter 8: Image Restoration 8.1 Introduction Image restoration concerns the removal or reduction of degradations that have occurred during the acquisition.
© by Yu Hen Hu 1 ECE533 Digital Image Processing Image Restoration.
Computer Vision - Restoration Hanyang University Jong-Il Park.
Medical Image Analysis Image Enhancement Figures come from the textbook: Medical Image Analysis, by Atam P. Dhawan, IEEE Press, 2003.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh M.Gholizadeh M.Gholizadeh
Copyright, 1996 © Dale Carnegie & Associates, Inc. Image Restoration Hung-Ta Pai Laboratory for Image and Video Engineering Dept. of Electrical and Computer.
Deconvolution, Deblurring and Restoration T , Biomedical Image Analysis Seminar Presentation Seppo Mattila & Mika Pollari.
Extracting Barcodes from a Camera-Shaken Image on Camera Phones Graduate Institute of Communication Engineering National Taiwan University Chung-Hua Chu,
Chapter 3: Image Restoration Introduction. Image restoration methods are used to improve the appearance of an image by applying a restoration process.
ENEE631 Digital Image Processing (Spring'04) Image Restoration Spring ’04 Instructor: Min Wu ECE Department, Univ. of Maryland, College Park  
Image Restoration Chapter 5.
CS654: Digital Image Analysis Lecture 22: Image Restoration - II.
Digtial Image Processing, Spring ECES 682 Digital Image Processing Week 5 Oleh Tretiak ECE Department Drexel University.
Digital Image Processing Lecture 10: Image Restoration March 28, 2005 Prof. Charlene Tsai.
Image Restoration.
Digital Image Processing Lecture : Image Restoration
Image Restoration Fasih ur Rehman. –Goal of restoration: improve image quality –Is an objective process compared to image enhancement –Restoration attempts.
Digital Image Processing Lecture 10: Image Restoration
8-1 Chapter 8: Image Restoration Image enhancement: Overlook degradation processes, deal with images intuitively Image restoration: Known degradation processes;
Ch5 Image Restoration CS446 Instructor: Nada ALZaben.
Image Subtraction Mask mode radiography h(x,y) is the mask.
Typical Types of Degradation: Motion Blur.
Digital Image Processing Lecture 11: Image Restoration March 30, 2005 Prof. Charlene Tsai.
ELE 488 F06 ELE 488 Fall 2006 Image Processing and Transmission Image Restoration distortion noise Inverse Filtering Wiener Filtering Ref: Jain,
Erosion: Erosion is used for shrinking of element A by using element B
Non-linear Filters Non-linear filter (nelineární filtr) –spatial non-linear operator that produces the output image array g(x,y) from the input image array.
1 Motion Blur Identification in Noisy Images Using Fuzzy Sets IEEE 5th International Symposium on Signal Processing and Information Technology (ISSPIT.
Morphological Filtering
Chapter 5 Image Restoration.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 5 Image Restoration Chapter 5 Image Restoration.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
CS654: Digital Image Analysis Lecture 22: Image Restoration.
Morphology Image Processing‏ Lab 6. Dilationgrow image regions Erosionshrink image regions Openingremoval of image region Closingfilling in image region.
Image Restoration. Image restoration vs. image enhancement Enhancement:  largely a subjective process  Priori knowledge about the degradation is not.
6/10/20161 Digital Image Processing Lecture 09: Image Restoration-I Naveed Ejaz.
ECE 533 Project Tribute By: Justin Shepard & Jesse Fremstad.
Digital Image Processing
Fourier transform.
Medical Image Analysis
Degradation/Restoration Model
Spatial & Frequency Domain
Image Restoration Spring 2005, Jen-Chang Liu.
Lecture 11 Image restoration and reconstruction II
To improve a given image in some predefined sense
Image Analysis Image Restoration.
Image Processing with Applications-CSCI597/MATH597/MATH489
Image Restoration and Denoising
Binary Image processing بهمن 92
Lecture 14 Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, 2002.
Applications of Fourier Analysis in Image Recovery
Digital Image Processing
Typical Types of Degradation: Motion Blur.
Digital Image Processing Lecture 11: Image Restoration
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Image Restoration II & Morphological Processing Comp344 Tutorial Kai Zhang

Outline Imgae Degradation Model Inverse Filter Wiener Filter Morphological Processing

Degradation Model Spatial domain Frequency domain Problem Definition Observe the degraded image g(x,y) H function and N (noise) are either known or need to be estimated Goal: restore the original image f(x,y)

H can be obtained by Observing the image (say, blurred) Modeling, example: atmospheric turbulence: Motion blur:

Inverse Filtering Simple (noiseless) case: Then original image can be obtained by Note: H(u,v) may have many small entries (close to 0) that spoil the result. Restrict the area to low frequency part or use Gaussian weighting to solve this problem.

Wiener Filtering Noise can be handled explicitly In case there is no noise, this is inverse filtering When noise is difficult to estimate, simply replace the power spectrum ratio between image and noise with a constant K

Functions Matlab builtin functions PSF = fspecial(‘type’, paras); All kinds of spatial filters. Type includes ‘average’, ‘disk’, ‘gaussian’,’motion’… Paras are corresponding parameters PSF is the spatial domain filter created Type help fspecial for more fr = deconvwnr(g, PSF, NSPR); Wiener filrering. G is corrupted image, fr is restored one PSF is the filter that degrades the image NSPR: noise to signal power ratio Type help deconvwnr for more

Example (noiseless) Inverse filtering

Codes f = checkerboard(20); figure, imshow(f,[]); xlabel('original image') PSF = fspecial('motion',7,45); gb = imfilter(f,PSF,'circular'); figure, imshow(gb,[]); xlabel('motion blurred') fr = deconvwnr(gb,PSF); figure, imshow(fr,[]);xlabel('restored');

Example (noisy)

Codes f = checkerboard(8); PSF = fspecial('motion',7,45); gb = imfilter(f,PSF,'circular'); noise = normrnd(0,0.001^0.5,size(f)); gb = gb + noise; figure,subplot(1,3,1);imshow(gb,[]); xlabel('noisy image'); fr1 = deconvwnr(gb, PSF); subplot(1,3,2),imshow(fr1,[]); xlabel('inverse filtering'); Sn = abs(fft2(noise)).^2; %noise power spectrum nA = mean(Sn(:)); % noise average power; Sf = abs(fft2(f)).^2; %image power spectrum fA = mean(Sf(:)); %image average spectrum R = nA/fA; fr2 = deconvwnr(gb,PSF,R); subplot(1,3,3); imshow(fr2,[]);xlabel('Wiener filtering');

Image dilation and Erosion, opening and closing For binary images, after specifying a structuring element: Dilation: grows or thickens the object Erosion: shrinks or thins object Opening of A by B, is simply erosion of A by B, followed by dilation of the result by B. Closing of A by B, is dilation followed by erosion (opposite to opening).

Dilation

Codes A = imread('broken-text.tif'); B = [0 1 0; 1 1 1; 0 1 0]; A2 = imdilate(A,B); imshow(A) figure,imshow(A)

Erosion

Codes A = imread('mask.tif'); figure,imshow(A); se = strel('disk',10); A2 = imerode(A, se); figure,imshow(A2); se = strel('disk',5); A3 = imerode(A, se); figure,imshow(A3); se = strel('disk',20); A4 = imerode(A, se); figure,imshow(A4);

Opening and Closing Original image; opening Closing; closing of top right image

f = imread('shapes.tif'); figure,imshow(f); se = strel('square', 20); fo = imopen(f, se); figure,imshow(fo); fc = imclose(f, se); figure,imshow(fc) foc = imclose(fo,se); figure,imshow(foc);

Original image; opening; opening followed by closing

Codes f = imread('noisy-fingerprint.tif'); figure,imshow(f); se = strel('square', 3); fo = imopen(f,se); figure,imshow(fo); foc = imclose(fo,se); figure,imshow(foc);