Compares the given rasters pixel by pixel and returns whether they are considered equal obeying the specified tolerance and maximum number of pixels that may be different.
public static System.bool PixelsEqual(
NRaster ,
NRaster ,
System.byte ,
System.int
)
Parameters
- raster1
- The first raster to compare.
- raster2
- The second raster to compare.
- tolerance
- The maximum allowed difference between the color components of the same pixels of the two rasters.
- allowedDifferentPixels
- The maximum allowed number of different pixels.
Return Value
A boolean value indicating whether the rasters are considered equal.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)