ImageSharp.Compare #1358
Replies: 4 comments 6 replies
-
@UkooLabs ideally, it would be the best to expose it from the core library. We had quite many requests for this feature, so I opened #1129 to track this request. In any case the hard thing is that the comparer code has a big flaw now: I don't like the idea of exposing the API in any form before this weakness is fixed. (Sidenote: If you need a good reason why are we so conservative about public API-s, see the complaints in #1283 :) ) Briefly: |
Beta Was this translation helpful? Give feedback.
-
Here is example output showing differences (I did small changes on odd squares and big changes on even squares) and used tolerant compare. Grey is same, White / Black is where actual color is above or below expected https://github.com/UkooLabs/ImageSharp.Compare/blob/master/tests/Images/ExpectedDifference.png |
Beta Was this translation helpful? Give feedback.
-
@antonfirsov @JimBobSquarePants question for either of you since I'm saving ImageFrames in the report is there a way of either converting a frame to image so I could provide a expected image with difference over the top or similar for actual. |
Beta Was this translation helpful? Give feedback.
-
@antonfirsov @JimBobSquarePants sorry to ping again i dont see a way of doing an equiv double dispatch with a non generic ImageFrame, should I change the process to convert the ImageFrames to Images instead? |
Beta Was this translation helpful? Give feedback.
-
@JimBobSquarePants
Thought id let you know I've started to extract the image comparing code and make it its own library, as wanting to have something I can use for ImageSharp.Textures and other projects. So thought its time I start making it a nuget.
Currently doing the unit tests then will be doing the build scripts, thought id mention here incase once done if you wanted to pull it in as a SixLabors Library.
I'm open to suggestions for a decent name :)
Here is the repo for now...
https://github.com/UkooLabs/ImageSharp.Compare
Beta Was this translation helpful? Give feedback.
All reactions