필터 지우기
필터 지우기

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