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

4 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 27 Sep 2013
diff(double(TheImage))

More Answers (1)

Image Analyst
Image Analyst on 27 Sep 2013
In the Image Processing Toolbox, you can use imgradient() with the 'Roberts' filter option.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!