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

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Locked
M3E46
Posts: 2
Joined: 2016-02-22T01:48:33-07:00
Authentication code: 1151

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

Post 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.

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com

M3E46
Posts: 2
Joined: 2016-02-22T01:48:33-07:00
Authentication code: 1151

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

Post 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!!!

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com

Locked