how can i get the horizontal and vertical pixel differences of the image

1 回表示 (過去 30 日間)
mahesh chathuranga
mahesh chathuranga 2013 年 9 月 27 日
回答済み: Image Analyst 2013 年 9 月 27 日
how can i get the horizontal and vertical pixel differences of the image. after that how can i combine this two images of horizontal and vertical pixel differences. finally i want to see the horizontal and vertical edges in one image.how can i do this.can any one help me with codes

採用された回答

Walter Roberson
Walter Roberson 2013 年 9 月 27 日
diff(double(TheImage))

その他の回答 (1 件)

Image Analyst
Image Analyst 2013 年 9 月 27 日
In the Image Processing Toolbox, you can use imgradient() with the 'Roberts' filter option.

Community Treasure Hunt

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

Start Hunting!

Translated by