フィルターのクリア

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

1 回表示 (過去 30 日間)
How can I use a loop to subtract a pixel's gray level to it´s neighbor pixel's gray level?

採用された回答

Thorsten
Thorsten 2013 年 2 月 13 日
編集済み: Thorsten 2013 年 2 月 13 日
I = im2double(imread('cameraman.tif'));
Ix = diff(I')';
Iy = diff(I);
  5 件のコメント
Teemu
Teemu 2013 年 2 月 13 日
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 2013 年 2 月 14 日
Can I use diff function to subtract pixel from 2-pixel away from it? So it not neigbour pixel anymore.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by