• Save
Matlab Image Restoration Techniques
Upcoming SlideShare
Loading in...5
×
 

Matlab Image Restoration Techniques

on

  • 3,893 views

Matlab Image Restoration Techniques

Matlab Image Restoration Techniques

Statistics

Views

Total Views
3,893
Views on SlideShare
3,830
Embed Views
63

Actions

Likes
2
Downloads
0
Comments
0

3 Embeds 63

http://www.dataminingtools.net 36
http://dataminingtools.net 24
http://www.slideshare.net 3

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Matlab Image Restoration Techniques Matlab Image Restoration Techniques Presentation Transcript

  • Matlab:Image Restoration Techniques
  • Removing Noise By Linear Filtering
    Linear filters, such as averaging or Gaussian filters can be used to remove certain types of noise. An averaging filter is useful for removing grain noise from a photograph. Because each pixel gets set to the average of the pixels in its neighborhood, local variations caused by grain are reduced.
  • Removing Noise By Median Filtering
    With median filtering, the value of an output pixel is determined by the median of the neighborhood pixels, rather than the mean. The median is much less sensitive than the mean to extreme values (called outliers). Median filtering is therefore better able to remove these outliers without reducing the sharpness of the image.
  • Applying the averaging filter
    >>I=imread('img.bmp');
    >> I=I(:,:,1);
    >> imshow(I);
    >>K = filter2(fspecial('average',3),I)/255;
    >>figure, imshow(K)
  • Applying the median filter
    >>I=imread('img.bmp');
    >> I=I(:,:,1);
    >> imshow(I);
    >> L = medfilt2(I,[3 3]);
    >>figure, imshow(L)
  • Rectifying background illumination
    Step 1: Read Image
    Step 2: Use Morphological Opening to Estimate the Background
    Step 3: View the Background Approximation as a Surface
    Step 4: Subtract the Background Image from the Original Image
  • Rectifying background illumination
    Step1: Read Image
    I = imread('rice.png'); imshow(I)
  • Rectifying background illumination
    Step 2: Use Morphological Opening to Estimate the Background
    >>background = imopen(I,strel('disk',15));
    >>figure, surf(double(background(1:8:end,1:8:end))),zlim([0 255]); set(gca,'ydir','reverse');
    • Step 3: View the Background Approximation as a Surface
  • Rectifying background illumination
    Step 2: Use Morphological Opening to Estimate the Background
    • Step 3: View the Background Approximation as a Surface
  • Rectifying background illumination
    Step 4: Subtract the Background Image from the Original Image
    I2 = I - background; imshow(I2)