I have two images. The first one is of background noise + content, and the second one is just of the background noise. I would like to subtract the second image from the first to remove noise from the content. The image is in greyscale.
I'm confused between the various ways to handle this, as well as the handling of greyscale values in mathematica.
1) Firstly, we may use ImageSubtract[imageOne, imageTwo]
.
2) By using ImageDifference[imageOne, imageTwo]
, we avoid negative pixel values, but the image is artificial at places where we would've had to have negative pixels when using ImageSubtract
.
3) We obtain the values of each pixel using ImageData
, subtract each corresponding value and then display the result using Image
.
Each of these methods yields different results.