Image Processing: what is the correct form of the Laplacian Filter

In summary, the Type 2 Laplacian is the conventional form for image processing and is derived by taking the second derivative in both the x and y-directions and only populating the central row/column.
  • #1
Master1022
611
117
Homework Statement
What is the correct form of the Laplacian filter in image processing?
Relevant Equations
Laplacian
Hi,

I just have a quick question regarding image processing. What is the correct form of the Laplacian for image processing?

I have seen different versions online and don't understand which one is meant to be the conventional one. I know that:
[tex] \nabla^2 f(x, y) = \frac{\partial^2 f}{\partial x^2} + \frac{\partial^2 f}{\partial y^2} [/tex]

Type 1:
[tex] \begin{pmatrix} 2 & -1 & 2 \\ -1 & -4 & -1 \\ 2 & -1 & 2 \\ \end{pmatrix} [/tex]

I believe this is derived by forming matrices for the second derivative in the x and y-directions separately and then combining those matrices. This one does that across all the 3 rows/columns.
Screen Shot 2021-04-28 at 12.04.51 PM.png

Type 2:
[tex] \begin{pmatrix} 0 & -1 & 0 \\ -1 & -4 & -1 \\ 0 & -1 & 0 \\ \end{pmatrix} [/tex]

This one is derived by doing the same as above, but only populating the central row/column.

Any help would be greatly appreciated.
 
Physics news on Phys.org
  • #2
The correct form of the Laplacian for image processing is Type 2: \begin{pmatrix} 0 & -1 & 0 \\ -1 & -4 & -1 \\ 0 & -1 & 0 \\ \end{pmatrix} This is the most commonly used form of the Laplacian and is derived by forming matrices for the second derivative in the x and y-directions separately and then combining those matrices, but only populating the central row/column. This version is often referred to as the "central difference" or "centered difference" approach.
 

Similar threads

Replies
1
Views
1K
Replies
6
Views
755
Replies
9
Views
3K
Replies
4
Views
2K
Replies
9
Views
2K
Replies
2
Views
568
Replies
2
Views
2K
Back
Top