Trait opencv::face::MACE[][src]

pub trait MACE: AlgorithmTrait + MACEConst {
    fn as_raw_mut_MACE(&mut self) -> *mut c_void;

    fn salt(&mut self, passphrase: &str) -> Result<()> { ... }
fn train(&mut self, images: &dyn ToInputArray) -> Result<()> { ... } }

Required methods

Provided methods

optionally encrypt images with random convolution

Parameters
  • passphrase: a crc64 random seed will get generated from this

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 with the train images

Implementations

constructor

Parameters
  • filename: build a new MACE instance from a pre-serialized FileStorage
  • objname: (optional) top-level node in the FileStorage
C++ default parameters
  • objname: String()

constructor

Parameters
  • IMGSIZE: images will get resized to this (should be an even number)
C++ default parameters
  • imgsize: 64

Implementors