#include "FbsTypes.h"
#include "FoundationBridgeSDKDll.h"
Typedefs | |
| typedef LandmarkListStruct * | FbsLandmarkListHandle |
| Handle to landmark metadata associated with a specific biometric sample image. The interface for FbsImageDescriptorHandle has methods for retriving autmoatically generated landmarks and for retrieving and setting manually created landmarks of a biometic sample. | |
Functions | |
| FbsLandmarkListHandle | fbsCreateLandmarkListHandle () |
| bool | fbsDestroyLandmarkListHandle (FbsLandmarkListHandle &handle) |
| bool | fbsLandmarkListAddFaceLandmark (FbsLandmarkListHandle handle, int x, int y, FbsLandmarkType type) |
| bool | fbsLandmarkListGetFaceLandmark (FbsLandmarkListHandle handle, int indexA, int &x, int &y, FbsLandmarkType &type) |
| bool | fbsLandmarkListGetNumberOfLandmarks (FbsLandmarkListHandle handle, int &numberOfLandmarks) |
| bool | fbsLandmarkListGetRollAngle (FbsLandmarkListHandle handle, float &rollAngle) |
The FbsLandmarkListHandle contains all of the landmark information of a biometric sample image, two examples of which are eye positions and finger minutia information. Manual landmarks can be set on the FbsImageDescriptorHandle before template creation occurs while automatically determined landmarks retrieved post template creation by querying the FbsImageDescriptorHandle from the FbsImageCollectionHandle after fbsTemplateCreatorCreateTemplates has been called. As of present only face landmarks are supported. It is expected that each modality will have a separate set of landmark functions in its interface that is most appropriate for setting and retrieving landmarks for that specific modality.
| typedef LandmarkListStruct* FbsLandmarkListHandle |
Handle to landmark metadata associated with a specific biometric sample image. The interface for FbsImageDescriptorHandle has methods for retriving autmoatically generated landmarks and for retrieving and setting manually created landmarks of a biometic sample.
| FbsLandmarkListHandle fbsCreateLandmarkListHandle | ( | ) |
Create an empty FbsLandmarkListHandle
| bool fbsDestroyLandmarkListHandle | ( | FbsLandmarkListHandle & | handle | ) |
Destroy an FbsLandmarkListHandle. This function should not be called on any FbsLandmarkListHandle that has been added to an FbsImageDescriptorHandle or that has been retrieved from an FbsImageDescriptorHandle. Any attempt to do so will result in error.
| handle | FbsLandmarkListHandle to be destroyed. Reference will be set to 0. |
| bool fbsLandmarkListAddFaceLandmark | ( | FbsLandmarkListHandle | handle, | |
| int | x, | |||
| int | y, | |||
| FbsLandmarkType | type | |||
| ) |
Add a landmark to the FbsLandmarkListHandle. Common landmarks include fbsLandmarkTypeRightEyeC and fbsLandmarkTypeLeftEyeC which is the method of adding manual eye positions to an FbsImageDescriptorHandle prior to template creation. This function should only be called on FbsLandmarkListHandle prior to that handle being inserted into an FbsImageDescriptorHandle.
| handle | the FbsLandmarkListHandle to be modified. | |
| x | coordinate of this landmark | |
| y | coordinate of this landmark | |
| type | the type of landmark being inserted into this FbsLandmarkListHandle |
| bool fbsLandmarkListGetFaceLandmark | ( | FbsLandmarkListHandle | handle, | |
| int | indexA, | |||
| int & | x, | |||
| int & | y, | |||
| FbsLandmarkType & | type | |||
| ) |
Retrieve a landmark from the FbsLandmarkListHandle. Common landmarks include fbsLandmarkTypeRightEyeC and fbsLandmarkTypeLeftEyeC. This function could be called on an FbsLandmarkListHandle post template creation to retrieve the eye positions generated during template creation. The client can retrieve the automatically generated landmark list from the FbsImageDescriptorHandle and then call this function to retrieve the eye positions for example.
| handle | the source FbsLandmarkListHandle | |
| indexA | the index of this landmark in this FbsLandmarkListHandle. Range is 0 to fbsLandmarkListGetNumberOfLandmarks-1. | |
| x | coordinate of this landmark | |
| y | coordinate of this landmark | |
| type | the type of landmark for this index in FbsLandmarkListHandle |
| bool fbsLandmarkListGetNumberOfLandmarks | ( | FbsLandmarkListHandle | handle, | |
| int & | numberOfLandmarks | |||
| ) |
Retrieve the number of landmark in an FbsLandmarkListHandle.
| handle | the source FbsLandmarkListHandle | |
| numberOfLandmarks | output parameter specifying size of landmark list |
| bool fbsLandmarkListGetRollAngle | ( | FbsLandmarkListHandle | handle, | |
| float & | rollAngle | |||
| ) |
Retrieve the rotation angle, available for face landmarks only
| handle | the source FbsLandmarkListHandle | |
| rollAngle | output parameter specifying roll angle = 180 * atan2(y1-y2, x1-x2) / PI |
1.5.8