Code covered by the BSD License  

Highlights from
Directional Smoothing Filter

Be the first to rate this file! 30 Downloads (last 30 days) File Size: 2.56 KB File ID: #42863
image thumbnail

Directional Smoothing Filter

by Ashish Meshram (Meet)

 

29 Jul 2013 (Updated 29 Jul 2013)

Directional Smoothing Filter

| Watch this File

File Information
Description

During de-speckling, edges are blurred so to protect edges from blurring directional smoothing filter is used.

This function dsf implements Directional Smoothing Filter as specified in the paper entitlled as Despeckling of SAR Image Using Adaptive and Mean Filters, by Syed Musharaf Ali, Muhammad Younus Javed, and Naveed Sarfraz Khattak.
[http://www.waset.org/journals/waset/v13/v13-28.pdf]

Function Specifications:
 
INPUT:
        I = Two Dimensional Matrix
        ms = Window (Mask) Size
OUTPUT:
        I = Processed Two Dimensional Matrix
 
USAGE EXAMPLES:
  
  RGB = imread('football.jpg');
  I = rgb2gray(RGB);
  NI = imnoise(I,'speckle');
  Y = dsf(I,3);
  Z3 = dsf(NI,3);
  Z5 = dsf(NI,5);
  Z7 = dsf(NI,7);
  subplot(2,3,1);imshow(I);title('Original Image');
  subplot(2,3,2);imshow(NI);title('Speckled Image');
  subplot(2,3,3);imshow(Y);title('Smooth Image of Original Image');
  subplot(2,3,4);imshow(Z3);title({'Smooth Image of Speckled Image','with window = 3X3'});
  subplot(2,3,5);imshow(Z5);title({'Smooth Image of Speckled Image','with window = 5X5'});
  subplot(2,3,6);imshow(Z7);title({'Smooth Image of Speckled Image','with window = 7X7'})

Required Products Image Processing Toolbox
MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
29 Jul 2013

change on the testdsf.m file line number 3

NI = imnoise(OI,'speckle');

to

to NI = imnoise(I,'speckle');

and same even in the documentation part of the dsf.m file.

thanks

Contact us