Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NRaster Class / PixelsEqual Method
The first raster to compare.
The second raster to compare.
The maximum allowed difference between the color components of the same pixels of the two rasters.
The maximum allowed number of different pixels.


In This Topic
    PixelsEqual Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Shared Function PixelsEqual( _
       ByVal raster1 As NRaster, _
       ByVal raster2 As NRaster, _
       ByVal tolerance As System.Byte, _
       ByVal allowedDifferentPixels As System.Integer _
    ) As System.Boolean
    'Usage
     
    
    Dim raster1 As NRaster
    Dim raster2 As NRaster
    Dim tolerance As System.Byte
    Dim allowedDifferentPixels As System.Integer
    Dim value As System.Boolean
     
    value = NRaster.PixelsEqual(raster1, raster2, tolerance, allowedDifferentPixels)
    public static System.bool PixelsEqual( 
       NRaster raster1,
       NRaster raster2,
       System.byte tolerance,
       System.int allowedDifferentPixels
    )

    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.
    Requirements

    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)

    See Also