I am attempting to show the difference between two files, image1 and image2, where image1 contains image2.
Image1 is "the image" and image2 is fixed pattern noise. I want to remove the fixed pattern noise with a template, which is image2
I'm new to imagemagick and this has me stumped.
If I apply the code below, I finish up with what looks very much like image2, when in fact what I want is what is left of image1 - image1 contains image2 - sounds like subtraction, but this too has me stumped.
Code: Select all
composite image1 image2 -compose difference diff
Code: Select all
files=(*.tiff); for f in "${files[@]}"; do composite *.tiff MBIAS.tiff -compose Minus_Dst "$f"; done
This is a pixel math problem, but I would like to find a similar solution in imagemagick.