3DiVi Face SDK  3.24.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
FaceQualityEstimator.h
Go to the documentation of this file.
1 
13 #ifndef __PBIO_API__PBIO__FACE_QUALITY_ESTIMATOR_H_
14 #define __PBIO_API__PBIO__FACE_QUALITY_ESTIMATOR_H_
15 
16 #include <sstream>
17 #include <vector>
18 
19 
20 #include "ComplexObject.h"
21 #include "RawSample.h"
22 #include "SmartPtr.h"
23 #include "Error.h"
24 #include "stl_wraps_impls/WrapOStreamImpl.h"
25 
26 
27 namespace pbio
28 {
29 
30 class FacerecService;
31 
41 class FaceQualityEstimator : public ComplexObject
42 {
43 public:
44 
50  typedef LightSmartPtr<FaceQualityEstimator>::tPtr Ptr;
51 
52 
77  float estimateQuality(const pbio::RawSample&) const;
78 
79 private:
80 
82  const DHPtr &dll_handle,
83  void* impl);
84 
85  friend class FacerecService;
86  friend class object_with_ref_counter<FaceQualityEstimator>;
87 };
88 
89 } // pbio namespace
90 
91 
92 
96 
97 namespace pbio
98 {
99 
100 
101 inline
102 FaceQualityEstimator::FaceQualityEstimator(
103  const DHPtr &dll_handle,
104  void* impl):
105 ComplexObject(dll_handle, impl)
106 {
107  // nothing else
108 }
109 
110 
111 inline
113 {
114  void* exception = NULL;
115 
116  const float result = _dll_handle->FaceQualityEstimator_estimateQuality(
117  _impl,
118  (pbio::facerec::RawSampleImpl const*) sample._impl,
119  &exception);
120 
121  checkException(exception, *_dll_handle);
122 
123  return result;
124 }
125 
126 
127 
128 } // pbio namespace
129 
130 #endif // __PBIO_API__PBIO__FACE_QUALITY_ESTIMATOR_H_
Interface object for sample quality estimation.
Definition: FaceQualityEstimator.h:41
Interface object for creating other interface objects.
Definition: FacerecService.h:64
Interface object that stores a captured face sample.
Definition: RawSample.h:49
LightSmartPtr< FaceQualityEstimator >::tPtr Ptr
Alias for the type of a smart pointer to FaceQualityEstimator.
Definition: FaceQualityEstimator.h:50
float estimateQuality(const pbio::RawSample &) const
Estimates quality of a given face sample.
Definition: FaceQualityEstimator.h:112
Error - the class of exceptions thrown when errors occur.
SmartPtr.
Definition: FacerecService.mm:79