Can I use diff function to subtract pixel from 2-pixel away from it? So it not neighbour pixel.

1 次查看(过去 30 天)
Can I use diff function to subtract pixel from 2-pixel away from it? So it not neighbour pixel.

采纳的回答

Walter Roberson
Walter Roberson 2013-2-18
No.
I suggest you use
diff2_col = YourArray(:,3:end) - YourArray(:,1:end-2)
or
diff2_row = YourArray(3:end,:) - YourArray(1:end-2,:)
depending on which dimension you want to proceed across.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by