mexopencv  3.4.1
MEX interface for OpenCV library
Functions | Variables
anonymous_namespace{ImgHash_.cpp} Namespace Reference

Functions

Ptr< ImgHashBasecreateImgHashBase (const string &alg, vector< MxArray >::const_iterator first, vector< MxArray >::const_iterator last)
 Create an instance of ImgHashBase using options in arguments. More...
 

Variables

int last_id = 0
 Last object id to allocate. More...
 
map< int, Ptr< ImgHashBase > > obj_
 Object container. More...
 
const ConstMap< string, int > BlockMeanHashModeMap
 BlockMeanHash mode map for option processing. More...
 

Function Documentation

◆ createImgHashBase()

Ptr<ImgHashBase> anonymous_namespace{ImgHash_.cpp}::createImgHashBase ( const string alg,
vector< MxArray >::const_iterator  first,
vector< MxArray >::const_iterator  last 
)

Create an instance of ImgHashBase using options in arguments.

Parameters
algimage hash algorithm, one of:
  • "AverageHash"
  • "BlockMeanHash"
  • "ColorMomentHash"
  • "MarrHildrethHash"
  • "PHash"
  • "RadialVarianceHash"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created ImgHashBase

Definition at line 39 of file ImgHash_.cpp.

Variable Documentation

◆ BlockMeanHashModeMap

const ConstMap<string,int> anonymous_namespace{ImgHash_.cpp}::BlockMeanHashModeMap
Initial value:
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

BlockMeanHash mode map for option processing.

Definition at line 23 of file ImgHash_.cpp.

◆ last_id

int anonymous_namespace{ImgHash_.cpp}::last_id = 0

Last object id to allocate.

Definition at line 18 of file ImgHash_.cpp.

◆ obj_

map<int,Ptr<ImgHashBase> > anonymous_namespace{ImgHash_.cpp}::obj_

Object container.

Definition at line 20 of file ImgHash_.cpp.