Class cv::img_hash::MarrHildrethHash#

Marr-Hildreth Operator Based Hash, slowest but more discriminative. View details

Collaboration diagram for cv::img_hash::MarrHildrethHash:

Public Member Functions#

Public Member Functions inherited from cv::img_hash::ImgHashBase

Return

Name

Description

~ImgHashBase()

double

compare(
    cv::InputArray hashOne,
    cv::InputArray hashTwo )

Compare the hash value between inOne and inTwo.

void

compute(
    cv::InputArray inputArr,
    cv::OutputArray outputArr )

Computes hash of the input image.

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::img_hash::ImgHashBase

Return

Name

Description

ImgHashBase()

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Protected Attributes inherited from cv::img_hash::ImgHashBase

Return

Name

Description

Ptr< ImgHashImpl >

pImpl

Detailed Description#

Marr-Hildreth Operator Based Hash, slowest but more discriminative.

See zauner2010implementation for details.

Constructor & Destructor Documentation#

MarrHildrethHash()#

cv::img_hash::MarrHildrethHash::MarrHildrethHash()

Member Function Documentation#

getAlpha()#

float cv::img_hash::MarrHildrethHash::getAlpha()

Python:

cv.img_hash.MarrHildrethHash.getAlpha() -> retval

self explain

getScale()#

float cv::img_hash::MarrHildrethHash::getScale()

Python:

cv.img_hash.MarrHildrethHash.getScale() -> retval

self explain

setKernelParam()#

void cv::img_hash::MarrHildrethHash::setKernelParam(
float alpha,
float scale )

Python:

cv.img_hash.MarrHildrethHash.setKernelParam(alpha, scale)

Set Mh kernel parameters.

Parameters

  • alpha — int scale factor for marr wavelet (default=2).

  • scale — int level of scale factor (default = 1)

create()#

static Ptr< MarrHildrethHash > cv::img_hash::MarrHildrethHash::create(
float alpha = 2.0f,
float scale = 1.0f )

Python:

cv.img_hash.MarrHildrethHash.create([, alpha[, scale]]) -> retval
cv.img_hash.MarrHildrethHash_create([, alpha[, scale]]) -> retval

Parameters

  • alpha — int scale factor for marr wavelet (default=2).

  • scale — int level of scale factor (default = 1)

Source file#

The documentation for this class was generated from the following file: