Constructor SKPixelComparisonResult
SKPixelComparisonResult(int, int, int)
Initializes a new instance of SKPixelComparisonResult.
public SKPixelComparisonResult(int totalPixels, int errorPixelCount, int absoluteError)
Parameters
totalPixelsintThe total number of pixels compared.
errorPixelCountintThe number of pixels that differ between the two images.
absoluteErrorintThe sum of per-channel (RGB) differences across all pixels.
SKPixelComparisonResult(int, int, int, long)
Initializes a new instance of SKPixelComparisonResult.
public SKPixelComparisonResult(int totalPixels, int errorPixelCount, int absoluteError, long sumSquaredError)
Parameters
totalPixelsintThe total number of pixels compared.
errorPixelCountintThe number of pixels that differ between the two images.
absoluteErrorintThe sum of per-channel (RGB) differences across all pixels.
sumSquaredErrorlongThe sum of per-channel (RGB) squared differences across all pixels.
SKPixelComparisonResult(int, int, int, long, int)
Initializes a new instance of SKPixelComparisonResult.
public SKPixelComparisonResult(int totalPixels, int errorPixelCount, int absoluteError, long sumSquaredError, int channelCount)
Parameters
totalPixelsintThe total number of pixels compared.
errorPixelCountintThe number of pixels that differ between the two images.
absoluteErrorintThe sum of per-channel differences across all pixels.
sumSquaredErrorlongThe sum of per-channel squared differences across all pixels.
channelCountintThe number of channels compared (3 for RGB, 4 for RGBA).