Method GenerateDifferenceImage
GenerateDifferenceImage(string, string)
Generates a per-channel difference image from two images loaded from file paths. Each pixel in the result contains the absolute per-channel differences as RGB values.
public static SKImage GenerateDifferenceImage(string firstFilename, string secondFilename)
Parameters
firstFilenamestringThe file path of the first image.
secondFilenamestringThe file path of the second image.
Returns
GenerateDifferenceImage(SKBitmap, SKBitmap)
Generates a per-channel difference image from two bitmaps.
public static SKImage GenerateDifferenceImage(SKBitmap first, SKBitmap second)
Parameters
Returns
GenerateDifferenceImage(SKPixmap, SKPixmap)
Generates a per-channel difference image from two pixmaps.
public static SKImage GenerateDifferenceImage(SKPixmap first, SKPixmap second)
Parameters
Returns
GenerateDifferenceImage(SKImage, SKImage)
Generates a per-channel difference image from two images. Each pixel in the result contains the absolute per-channel differences as RGB values, unlike GenerateDifferenceMask(SKImage, SKImage) which produces a binary black-and-white mask.
public static SKImage GenerateDifferenceImage(SKImage first, SKImage second)
Parameters
Returns
Exceptions
- ArgumentNullException
firstorsecondisnull.- InvalidOperationException
The images have different dimensions.