MATLAB: Obtain a difference image

digital image processingimage processingMATLAB

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

Best Answer

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