Switch to full style
General MATLAB code examples.
Post a reply

rank order filter effects on image

Fri Mar 25, 2011 8:16 pm

Following example show rank order filter effects on image , it show erosion and dilation effect . The value of the order is the key .
Code:

   
    
%% create a new figure to show the image 
    
imread('snowflakes.png');
    
figure(1);
    %% 
show the loaded image.
    
imshow(A);
    
    %% 
dilation affect.
    
ordfilt2(A,25,true(5));
    
figure(2),imshow(B)
    
    %% 
erosion affect.
    
ordfilt2(A,1,true(5));
    
figure(3),imshow(B)
 



Attachments
1.GIF
1.GIF (26.23 KiB) Viewed 7555 times

Post a reply
  Related Posts  to : rank order filter effects on image
 java image effects     -  
 Median filter to image     -  
 apply mean filter to image     -  
 applying wiener filter to image     -  
 Applying canny filter to image     -  
 apply sobel filter to image     -  
 apply prewitt filter to image     -  
 apply laplacian filter to image     -  
 Image Custom Filter In Java     -  
 apply robert filter to image     -  

Topic Tags

Matlab Image