Page 1 of 1

Compare GREEN/RED Color, without backlight checking....

Posted: 2016-02-22T01:54:06-07:00
by M3E46
Hello,

I tried to record something, that's now it's flash non stop an red light.
It can be changed on green.

What I'm trying now is an imagemagick searcher, that can see the difference between the RED and GREEN light.
Only when I compare it's takes everything, the Hue, the calibration, the backlight that changes all the time.

What can I do? I run Linux (Debian), but also Windows.
Thanks in advance.

Once again, I wanna capture the changes between GREEN and RED.

Re: Compare GREEN/RED Color, without backlight checking....

Posted: 2016-02-22T02:57:55-07:00
by snibgo
I don't understand the problem you want to solve. Perhaps sample images would help. You can upload to somewhere like dropbox.com and paste the URLs here.

Re: Compare GREEN/RED Color, without backlight checking....

Posted: 2016-02-22T03:14:51-07:00
by M3E46
snibgo wrote:I don't understand the problem you want to solve. Perhaps sample images would help. You can upload to somewhere like dropbox.com and paste the URLs here.
Thanks.

See images:

Image
Image

As you see, the backlight is a little bit different (because webcam).
I wanna see the difference between this two.

So the difference is the GREEN and RED color. And not the backlight.
I hope you understand this. Thanks!!!

Re: Compare GREEN/RED Color, without backlight checking....

Posted: 2016-02-22T04:50:54-07:00
by snibgo
Using "-compose Difference", we can make a mask of where the differences are. Windows BAT syntax.

Code: Select all

convert ^
  image.jpg image2.jpg ^
  -compose Difference -composite -grayscale Brightness -threshold 50%% ^
  rgdiff.png
Image
Then we can use the mask to see just the pixels that are different:

Code: Select all

convert ^
  image.jpg rgdiff.png ^
  -alpha off -compose CopyOpacity -composite ^
  -trim +repage ^
  rgimage1.png

convert ^
  image2.jpg rgdiff.png ^
  -alpha off -compose CopyOpacity -composite ^
  -trim +repage ^
  rgimage2.png
Image
Image
I don't know what you might want next.