Minimum Average Correlation Energy Filter useful for authentication with (cancellable) biometrical features. (does not need many positives to train (10-50), and no negatives at all, also robust to noise/salting) More...
#include <opencv2/face/mace.hpp>

Public Member Functions | |
virtual void | salt (const cv::String &passphrase)=0 |
optionally encrypt images with random convolution | |
virtual bool | same (cv::InputArray query) const =0 |
correlate query img and threshold to min class value | |
virtual void | train (cv::InputArrayOfArrays images)=0 |
train it on positive features compute the mace filter: h = D(-1) * X * (X(+) * D(-1) * X)(-1) * C also calculate a minimal threshold for this class, the smallest self-similarity from the train images | |
![]() | |
Algorithm () | |
virtual | ~Algorithm () |
virtual void | clear () |
Clears the algorithm state. | |
virtual bool | empty () const |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. | |
virtual String | getDefaultName () const |
virtual void | read (const FileNode &fn) |
Reads algorithm parameters from a file storage. | |
virtual void | save (const String &filename) const |
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
virtual void | write (FileStorage &fs) const |
Stores algorithm parameters in a file storage. | |
void | write (FileStorage &fs, const String &name) const |
Static Public Member Functions | |
static cv::Ptr< MACE > | create (int IMGSIZE=64) |
constructor | |
static cv::Ptr< MACE > | load (const String &filename, const String &objname=String()) |
constructor | |
![]() | |
template<typename _Tp > | |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
Loads algorithm from the file. | |
template<typename _Tp > | |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
Loads algorithm from a String. | |
template<typename _Tp > | |
static Ptr< _Tp > | read (const FileNode &fn) |
Reads algorithm from the file node. | |
Additional Inherited Members | |
![]() | |
void | writeFormat (FileStorage &fs) const |
Detailed Description
Minimum Average Correlation Energy Filter useful for authentication with (cancellable) biometrical features. (does not need many positives to train (10-50), and no negatives at all, also robust to noise/salting)
see also: [Savvides04]
this implementation is largely based on: https://code.google.com/archive/p/pam-face-authentication (GSOC 2009)
use it like:
you can also use two-factor authentication, with an additional passphrase:
save/load your model:
Member Function Documentation
◆ create()
constructor
- Parameters
-
IMGSIZE images will get resized to this (should be an even number)
◆ load()
|
static |
constructor
- Parameters
-
filename build a new MACE instance from a pre-serialized FileStorage objname (optional) top-level node in the FileStorage
◆ salt()
|
pure virtual |
optionally encrypt images with random convolution
- Parameters
-
passphrase a crc64 random seed will get generated from this
◆ same()
|
pure virtual |
correlate query img and threshold to min class value
- Parameters
-
query a Mat with query image
◆ train()
|
pure virtual |
train it on positive features compute the mace filter: h = D(-1) * X * (X(+) * D(-1) * X)(-1) * C
also calculate a minimal threshold for this class, the smallest self-similarity from the train images
- Parameters
-
images a vector<Mat> with the train images
The documentation for this class was generated from the following file:
- opencv2/face/mace.hpp