visageSDK
objc_FDP.h
1 //
2 // objc_FDP.h
3 // SwiftWrapper
4 //
5 // Created by Visage Technologies on 28/08/2020.
6 // Copyright © 2020 Visage Technologies. All rights reserved.
7 //
8 
9 #ifndef objc_FDP_h
10 #define objc_FDP_h
11 
12 #import "objc_FeaturePoint.h"
13 
14 #ifdef __cplusplus
15 #include "FDP.h"
16 #endif
17 
21 @interface FDP : NSObject <NSCopying> {
22  @private
23  #ifdef __cplusplus
24  VisageSDK::FDP* fdp;
25  #endif
26 }
27 
32 - (FDP *)initWithNativeFDP:(void *)nativeFDP;
33 
38 - (FDP *)initWithFilename:(NSString *)name;
39 
44 - (id)copyWithZone:(NSZone *)zone;
45 
53 - (int)readFromFile:(NSString *)name;
54 
59 - (void)createNewFile:(NSString *)name;
60 
65 - (void)saveToFile:(NSString *)name;
66 
71 - (void)saveToFile;
72 
79 - (FeaturePoint *)getFP:(int)group withIndex:(int)n;
80 
86 - (FeaturePoint *)getFP:(NSString *)name;
87 
95 - (void)setFP:(int)group withIndex:(int)n withFeaturePoint:(FeaturePoint *)f;
96 
102 - (void)setFP:(NSString *)name withFeaturePoint:(FeaturePoint *)f;
103 
111 - (const float *)getFPPos:(int)group withIndex:(int)n;
112 
118 - (const float *)getFPPos:(NSString *)name;
119 
127 - (float)getFPQuality:(int)group withIndex:(int)n;
128 
134 - (float)getFPQuality:(NSString *)name;
135 
142 - (void)setFPQuality:(int)group withIndex:(int)n withQuality:(float)quality;
143 
149 - (void)setFPQuality:(NSString *)name withQuality:(float)quality;
150 
157 - (void)setFPPos:(int)group withIndex:(int)n withPos:(NSArray *)pos;
158 
164 - (void)setFPPos:(NSString *)name withPos:(NSArray *)pos;
165 
174 - (void)setFPPos:(int)group withIndex:(int)n withX:(float)x withY:(float)y withZ:(float)z;
175 
183 - (void)setFPPos:(NSString *)name withX:(float)x withY:(float)y withZ:(float)z;
184 
193 - (bool)getFPSurfVert:(int)group withIndex:(int)n withSurface:(NSString *)surf withVertex:(int)vert;
194 
202 - (bool)getFPSurfVert:(NSString *)name withSurface:(NSString *)surf withVertex:(int)vert;
203 
211 - (void)setFPSurfVert:(int)group withIndex:(int)n withSurface:(NSString *)surf withVertex:(int)vert;
218 - (void)setFPSurfVert:(NSString *)name withSurface:(NSString *)surf withVertex:(int)vert;
219 
225 - (void)reset;
226 
235 - (bool)FPIsDefined:(int)group withIndex:(int)n;
236 
244 - (bool)FPIsDefined:(NSString *)name;
245 
254 - (bool)FPIsDetected:(int)group withIndex:(int)n;
255 
263 - (bool)FPIsDetected:(NSString *)name;
264 
265 /*
266 * Returns true if the face is normalized.
267 */
268 - (bool) isNormalized;
269 
270 /*
271 * Returns true if the face is initialized.
272 */
273 - (bool) isInitialized;
274 
282 + (void)parseFPName:(NSString *)name withGroup:(int)group withIndex:(int)n;
283 
292 + (NSString *)getFPName:(int)group withIndex:(int)n;
293 
302 + (bool)FPIsValid:(int)group withIndex:(int)n;
303 
312 + (bool)FPIsValid:(NSString *) name;
313 
314 typedef NS_ENUM(NSInteger, pointTypes) { PT_LEFT = 1, PT_CENTRAL = 2, PT_RIGHT = 3, PT_UNDEFINED = -1 };
315 
316 + (pointTypes) getPointType:(int) group withIndex:(int) index;
317 
326 + (int)groupSize:(int)group;
327 
336 + (int)getMirrorPointIndex:(int)group withIndex:(int)n;
337 
338 
339 
340 @end
341 #endif /* objc_FDP_h */
Objective-C wrapper of the VisageSDK::FeaturePoint class.
Feature points of a face.
Definition: FDP.h:191
Objective-C wrapper of the VisageSDK::FDP class.
Definition: objc_FDP.h:21