ImageMagick.PerceptualHash.SumSquaredDistance C# (CSharp) Method

SumSquaredDistance() public method

Returns the sum squared difference between this hash and the other hash.
public SumSquaredDistance ( PerceptualHash other ) : double
other PerceptualHash The to get the distance of.
return double
    public double SumSquaredDistance(PerceptualHash other)
    {
      Throw.IfNull(nameof(other), other);

      return
        _Channels[PixelChannel.Red].SumSquaredDistance(other._Channels[PixelChannel.Red]) +
        _Channels[PixelChannel.Green].SumSquaredDistance(other._Channels[PixelChannel.Green]) +
        _Channels[PixelChannel.Blue].SumSquaredDistance(other._Channels[PixelChannel.Blue]);
    }