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

Applying canny filter to image

Sat Apr 09, 2011 10:11 pm

Applying canny filter to image
Code:
  
   
%% apply canny 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 canny filter.
    cannyResult = edge(grayImage,'canny')
    imshow(cannyResult);
 




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

Topic Tags

Matlab Image