feature method

Mat feature(
  1. Mat alignedImg, {
  2. bool clone = false,
})

Extracts face feature from aligned image.

alignedImg input aligned image clone the default implementation of opencv won't clone the returned Mat set clone to true will return a clone of returned Mat

https://docs.opencv.org/4.x/da/d09/classcv_1_1FaceRecognizerSF.html#ab1b4a3c12213e89091a490c573dc5aba

Implementation

Mat feature(Mat alignedImg, {bool clone = false}) {
  final p = calloc<cobjdetect.Mat>();
  cvRun(() => cobjdetect.FaceRecognizerSF_Feature(ref, alignedImg.ref, clone, p));
  return Mat.fromPointer(p);
}