how does the image laplacian filter change with its shape?
Afficher commentaires plus anciens
when I call fspecial('laplacian', alpha) to obtain an laplacian filter for image processing, I get matrix with different scale:

I went into the code, it writes:
alpha = p2;
alpha = max(0,min(alpha,1));
h1 = alpha/(alpha+1); h2 = (1-alpha)/(alpha+1);
h = [h1 h2 h1;h2 -4/(alpha+1) h2;h1 h2 h1];
I think this promise the scale of the pixel value stay the same when you change the shape of the filter. So what certain rule does the code follow to make this happen?
1 commentaire
Réponses (1)
KALYAN ACHARJYA
le 13 Juin 2018
1 vote

4 commentaires
KALYAN ACHARJYA
le 13 Juin 2018
I hope this will clear you
KALYAN ACHARJYA
le 13 Juin 2018
Modifié(e) : KALYAN ACHARJYA
le 13 Juin 2018
Normalization: Multiply and Add all elements its gives 0
Is the question Answered?
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
