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

apply robert filter to image

Sat Apr 09, 2011 10:06 pm

Following code show applying Robert filter to image .
Code:
   
 
%% apply robert filter .
    clc;
   
    
%% create a new figure to show the image . 
    newImg 
= imread('Water lilies.jpg');
    figure(1);
    %% convert RGB to gray scale.
    grayImage= rgb2gray(newImg)
    imshow(grayImage);
    figure(2);
    %% apply roberts filter.
    robertsResult = edge(grayImage,'roberts')
    imshow(robertsResult);
 



Attachments
robert.JPG
robert filter results
robert.JPG (56.69 KiB) Viewed 10384 times

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

Topic Tags

Matlab Image