ImgHashBase

Objective-C

@interface ImgHashBase : Algorithm

Swift

class ImgHashBase : Algorithm

The base class for image hash algorithms

Member of Img_hash

Methods

  • Compare the hash value between inOne and inTwo

    Declaration

    Objective-C

    - (double)compare:(nonnull Mat *)hashOne hashTwo:(nonnull Mat *)hashTwo;

    Swift

    func compare(hashOne: Mat, hashTwo: Mat) -> Double

    Parameters

    hashOne

    Hash value one

    hashTwo

    Hash value two - returns: value indicate similarity between inOne and inTwo, the meaning of the value vary from algorithms to algorithms

  • Computes hash of the input image

    Declaration

    Objective-C

    - (void)compute:(nonnull Mat *)inputArr outputArr:(nonnull Mat *)outputArr;

    Swift

    func compute(inputArr: Mat, outputArr: Mat)

    Parameters

    inputArr

    input image want to compute hash value

    outputArr

    hash of the image