C# Class LibSimilarImageDotNet.SimilarImage

Datei anzeigen Open project: soywiz/SimilarImageDotNet

Public Methods

Method Description
CompareHashes ( string Hash1, string Hash2 ) : float

CompareHashesBool ( string Hash1, string Hash2, double Threeshold = 0.9 ) : bool
GetCompressedImageHashAsString ( Bitmap FullImage, int Levels = DefaultMaxLevels ) : String

GetImageHash ( Bitmap FullImage, int Levels = DefaultMaxLevels ) : byte[]

Private Methods

Method Description
CountBits ( uint Bits ) : int
CountEqualBits ( uint Bits1, uint Bits2, int Total ) : int
GetLevelSide ( int Level ) : int

Method Details

CompareHashes() public static method

public static CompareHashes ( string Hash1, string Hash2 ) : float
Hash1 string
Hash2 string
return float

CompareHashesBool() public static method

public static CompareHashesBool ( string Hash1, string Hash2, double Threeshold = 0.9 ) : bool
Hash1 string
Hash2 string
Threeshold double
return bool

GetCompressedImageHashAsString() public static method

public static GetCompressedImageHashAsString ( Bitmap FullImage, int Levels = DefaultMaxLevels ) : String
FullImage System.Drawing.Bitmap
Levels int
return String

GetImageHash() public static method

public static GetImageHash ( Bitmap FullImage, int Levels = DefaultMaxLevels ) : byte[]
FullImage System.Drawing.Bitmap
Levels int
return byte[]