Search code examples
pythonlinuximageimage-processingopencsv

Add diff of images into one image (Linux/Python)


I'm looking for a way to blend only the differences of images into one image. I'm looking for a linux command or a way to achieve this with python.

Example: Source images:

enter image description here enter image description here enter image description here

The result should be:

enter image description here

Another usecase: http://3.bp.blogspot.com/-h3yuVc0hyvc/ToqQDE0Bf4I/AAAAAAAAGj0/HON-gM_9PhU/s1600/JayBumpOllieStichedFinishedRS.jpg

Thanks!!

Vince


Solution

  • This is not exactly what I asked, but it does the job good enough for my needs:

    convert 1.jpg 2.jpg 3.jpg -evaluate-sequence max evalresult.png
    

    With the example image with the clouds it doesn't work really good (because the clouds are white), but in another context it is great (when the differences are brighter than the background)

    enter image description here