Calculate image differences in C#

前端 未结 2 1678
醉梦人生
醉梦人生 2021-02-04 18:52

How could I generate a System.Drawing.Image that contains the differences between the pixels of two other images?

Something similar to GitHub does, but writ

2条回答
  •  死守一世寂寞
    2021-02-04 19:41

    A quick google search yielded this:

    http://www.bryancook.net/2009/10/find-differences-between-images-c.html

    If your're going to be using ARGB rather then RGB, it'll probably need a bit of editing. If you wanted to get that 'inverted difference' effect, like in the Github link posted, you could find the differance between RGB colors and use that for each pixel in the difference image, etc.

提交回复
热议问题