Skip to content
Discussion options

You must be logged in to vote

You will get the correct result when you do actualImage.Compare(expectedImage instead. This is happening because the actual image only has two channels and the expected image has 4 channels. This might be a bug that I will need to investigate in more detail. My advise would be to set the ColorType of both images to TrueColorAlpha before comparing them. Then you are comparing the correct channels. Or you could use ErrorMetric.RootMeanSquared instead.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bokhanhanna
Comment options

Answer selected by bokhanhanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants