Something strange happens when substracting 2 images (mat type) in opencv

you should post the original source images. we can’t tell what is going on from just the output picture.