Get absolute color difference between two imags.
-
- Posts: 27
- Joined: 2016-03-11T07:27:11-07:00
- Authentication code: 1151
Get absolute color difference between two imags.
So, let's say I have 2 images. Both are identical, except one has a semi-transparent overlay placed over it. What I want to do is convert both images to greyscale, and render an output image which has values that are the absolute difference between the two input images. Also, How can I extract a semi-transparent overlay from an image, assuming it has the same opacity?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Get absolute color difference between two imags.
coolperez8 wrote:What I want to do is convert both images to greyscale, and render an output image which has values that are the absolute difference between the two input images.
Code: Select all
code in1.png in2.png -colorspace Gray -compose Difference -composite out.png
I think of this as a de-watermarking problem. See Watermarks.coolperez8 wrote:Also, How can I extract a semi-transparent overlay from an image, assuming it has the same opacity?
snibgo's IM pages: im.snibgo.com
-
- Posts: 27
- Joined: 2016-03-11T07:27:11-07:00
- Authentication code: 1151
Re: Get absolute color difference between two imags.
How would I use the scripts? I have a Windows 10 PC as well as a PC running Linux Mint 18.snibgo wrote: ↑2017-07-09T13:35:29-07:00coolperez8 wrote:What I want to do is convert both images to greyscale, and render an output image which has values that are the absolute difference between the two input images.Code: Select all
code in1.png in2.png -colorspace Gray -compose Difference -composite out.png
I think of this as a de-watermarking problem. See Watermarks.coolperez8 wrote:Also, How can I extract a semi-transparent overlay from an image, assuming it has the same opacity?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Get absolute color difference between two imags.
The scripts and commands are Windows BAT syntax. Example commands on the page show commands that use the script. They are simple, and could easily be converted to bash or any script language.
snibgo's IM pages: im.snibgo.com