Laplacian filter and implementation in MATLAB
Simple derivation of second order differentiation:
f'(x) = f(x+1) - f(x)
f'(x+1) = f(x+2) - f(x+1)
f"(x) = f'(x+1) - f'(x)
= f(x+2) - f(x+1) - f(x+1) + f(x)
= f(x+2) - 2*f(x+1) + f(x)
Here is the MATLAB code for Laplacian filter and implementation
%Code:
clc
clear all
close all
x=imread('peppers.png');
figure;
imshow(x);
title('Original
Image');
g=[0 1 0;1 -4 1;0 1 0];
output=imfilter(x,g);
figure;imshow(output)
Now let's understand through the video lectures.
Join us on Facebook Group:
https://www.facebook.com/groups/matlabcodes
No comments