difference between two files
Posted: 2015-05-14T06:08:37-07:00
Hi.
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.
Subtraction should work, but is not ideal because I have a series of images that are almost identical but not exactly. If I apply the following code the images combine with blurring because the images are not exactly aligned - and I don't want them to be. I want to return separate images for further processing, to be combined some time later.
Is there a better way of doing this? I have attempted numerous commands without success - difference seems the logical approach. If I understand difference correctly.
This is a pixel math problem, but I would like to find a similar solution in imagemagick.
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.