How can I use a loop to subtract a pixel's gray level to it´s neighbor pixel's gray level?

3 vues (au cours des 30 derniers jours)
How can I use a loop to subtract a pixel's gray level to it´s neighbor pixel's gray level?

Réponse acceptée

Thorsten
Thorsten le 13 Fév 2013
Modifié(e) : Thorsten le 13 Fév 2013
I = im2double(imread('cameraman.tif'));
Ix = diff(I')';
Iy = diff(I);
  5 commentaires
Teemu
Teemu le 13 Fév 2013
Can I do diff function to one file to both x- and y-direction? Or can I make one file from Ix and Iy? I mean that I do diff function and get one file.
Teemu
Teemu le 14 Fév 2013
Can I use diff function to subtract pixel from 2-pixel away from it? So it not neigbour pixel anymore.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by