please help me to write this equations in matlab

how to write these three equations in matlab here L1 is the 3 by 3 matrix. Kindly help me to write these equations.

1 Comment

Jan
Jan on 18 Aug 2012
Edited: Jan on 18 Aug 2012
Are you sure that you have the permissions to post the text in a public forum?
What have you tried so far and which problems occurred?

Sign in to comment.

 Accepted Answer

The Laplacian for discrete images is this:
kernel8 = [-1 -1 -1; -1 8 -1; -1 -1 -1];
filteredImage = conv2(imageArray, kernel8, 'same');
Use a different kernel if you want it in just the 4 directions:
kernel4 = [0 -1 0; -1 4 -1; 0 -1 0];

1 Comment

Thank you very much this code is very much useful for me

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!