Image Processing in MATLAB Tutorial 4 - Filters
This is a tutorial series on the image processing toolbox on MATLAB. It mainly aims at demonstrating the functions in an easy and understandable. To watch other videos in this playlist, visit: • Image Processing in MATLAB
In this video, various filters and edge detection techniques are covered. They are applied on an image and the output by applying various filters is explained.
Code:
a = imread('color.jpg');
subplot(2,3,1), imshow(a);
b = rgb2gray(a);
subplot(2,3,2), imshow(b);
h = ones(6,6)/36;
c = imfilter(b,h);
subplot(2,3,3), imshow(c);
h = [1 0 -1; 2 0 -2; 1 0 -1];
d = imfilter(b,h);
subplot(2,3,4), imshow(d);
e = edge(b,'canny');
imshow(e)
By: Surya Penmetsa