obtain a difference image

Can any body guide me How to obtain a difference image by taking first-order horizontal differences?

 Accepted Answer

diffImage = conv2(grayImage, [1, -1], 'same');

More Answers (0)

Community Treasure Hunt

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

Start Hunting!