Listener for all callbacks of the visionLib. More...
#import <vlSDK/vlSDK_Apple.h>
Inherits <NSObjectNSObject>.
Instance Methods | |
(void) | - onCalibrationResults: |
Receive the calibration data Will be called with a valid calibration, when getResults has been called. This function will only be called, when using the camera calibration configuration. More... | |
(void) | - onCGDebugImageRef:withRotationMatrix: |
Retreives the configured Debug Image as a CGImageRef When overloading this function, a CGImageRef will be passed, when needed to be set or rendered as background texture functions like onGetDebugImageBufferWithWidth and/or onRawImageBuffer will not be called then, even if defined. More... | |
(void) | - onCGImageRef:withRotationMatrix: |
Receive a CGImageRef image buffer When overloading this function, a CGImageRef will be passed, when needed to be set or rendered as background functions like onGetImageBufferWithWidth and/or onRawImageBuffer will not be called then, even if defined. More... | |
(void) | - onExtrinsicData:isValid: |
Receiving the camera pose Overloading this function will pass a model view matrix for the rendering system. More... | |
(void) | - onGetAttribute:withValue: |
Receive the requested attribute Will be called when an attribute of the pipeline has been requested using getAttributeRequest. More... | |
(NSMutableData *_Nonnull) | - onGetDebugImageBufferWithWidth:andHeight:andBytesPerPixel: |
Retreives the configured Debug Image Use this for setting your own memory location to be the image copied in. More... | |
(NSMutableData *_Nonnull) | - onGetImageBufferWithWidth:andHeight:andBytesPerPixel: |
Set your own image buffer to copy the image into Use either this for setting your own memory location to be the image copied in. More... | |
(void) | - onInitPose:andQ: |
Receive the initial pose as quaternion and translation. Will be called when getInitPose has been issued, it will return the currently set init pose (in openGL compatible system) | |
(void) | - onInitPoseMatrix: |
Receive the initial pose as matrix. Will be called when getInitPose has been issued, it will return the currently set init pose (in openGL compatible system) | |
(void) | - onIntrinsicData: |
Receive the projection matrix Overloading this function will pass a projection matrix regarding the set near and far, width and height value of your screen. More... | |
(void) | - onIntrinsicDataWithWidth:height:cx:cy:fx:fy: |
Receive the intrinsic data Overloading this function will pass a projection matrix regarding the set near and far, width and height value of your screen. More... | |
(void) | - onIssuesTriggered:andErrors: |
Will be called when the tracker has been done loading and is running now. Tracking issues are passed separated by errors and warnings. You should take these very serious. You can review a complete list of possible issues in the documentation. More... | |
(void) | - onLog: |
Receive the internal visionLib Log. Depending on the configured log level you will receive the internal log messages from the visionlib. You might use these messages during development. Anyway it is NOT recommended using them for the end user nor parsing them. Defined issues should be gathered by using onIssuesTriggered:andErrors:. More... | |
(void) | - onMetalDebugImageTexture:withRotationMatrix: |
Retreives the configured Debug Image as a metal texture When overloading this function, a metal texture will be passed, when needed to be set or rendered as background texture functions like onGetDebugImageBufferWithWidth and/or onRawImageBuffer will not be called then, even if defined. More... | |
(void) | - onMetalImageTexture:withRotationMatrix: |
Receive a metal image buffer (experimental) When overloading this function, a metal texture will be passed, when needed to be set or rendered as background texture functions like onGetImageBufferWithWidth and/or onRawImageBuffer will not be called then, even if defined. More... | |
(void) | - onModelProperties: |
(void) | - onModelRemoved:withError: |
(void) | - onRawDebugImageBuffer:withWidth:andHeight:andBytesPerPixel: |
Retreives the configured Debug Image Overloading this function onGetDebugImageBufferWithWidth should not have been overloaded too. will provide you on every frame with fresh image data. More... | |
(void) | - onRawImageBuffer:withWidth:andHeight:andBytesPerPixel: |
Receive a raw image buffer Overloading this function onGetImageBufferWithWidth should not have been overloaded too. will provide you on every frame with fresh image data. More... | |
(void) | - onRawModelAdded:withError: |
(void) | - onResetTracking: |
Receive the reset state Will be called when a reset has occured (hard or soft) More... | |
(void) | - onSteppedFrame |
Receive the stepped state. Will be called, when the SDK has stepped one frame forward. This can be used in conjunction with stepFrame. | |
(void) | - onTrackerInitialized: |
When the tracker has been initialized Will be called when the tracker has been done loading and is running now or not. It is recommended also using the onIssuesTriggered:andErrors: function for more precise informations about the state of the tracking pipe. More... | |
(void) | - onTrackingInformation: |
Receive runtime tracking information on each frame Will pass a dictionary with information about the tracking quality etc into the application only if is tracking. More... | |
(void) | - onTrackingPaused: |
Receive the pause state. Will be called, when the tracking pause was issued. More... | |
Listener for all callbacks of the visionLib.
vlFrameListenerInterface The vlFrameListenerInterface delegate protocol allows you gaining on frame information about the current tracking state.
|
optional |
Receive the calibration data Will be called with a valid calibration, when getResults has been called. This function will only be called, when using the camera calibration configuration.
json | A NSString holding a json structure with the calibration data. |
|
optional |
Retreives the configured Debug Image as a CGImageRef When overloading this function, a CGImageRef will be passed, when needed to be set or rendered as background texture functions like onGetDebugImageBufferWithWidth and/or onRawImageBuffer will not be called then, even if defined.
data | MTLTexture object |
m | A pointer to 16 item matrix holding a rotation matrix of the content to be rotated with |
|
optional |
Receive a CGImageRef image buffer When overloading this function, a CGImageRef will be passed, when needed to be set or rendered as background functions like onGetImageBufferWithWidth and/or onRawImageBuffer will not be called then, even if defined.
data | The number of bytes occupied per pixel (e.g. 4 for RGBA images) |
width | The width of the image |
width | The height of the image |
bytesPerPixel | the number of bytes occupied per pixel (e.g. 4 for RGBA images) |
|
optional |
Receiving the camera pose Overloading this function will pass a model view matrix for the rendering system.
data | A 16 element matrix holding the complete opengl capable model view matrix. |
valid | A boolean flag indicating if the pose is valid. |
|
optional |
Receive the requested attribute Will be called when an attribute of the pipeline has been requested using getAttributeRequest.
name | A NSString holding the name of the set attribute |
value | A NSString holding the value of the set attribute |
|
optional |
Retreives the configured Debug Image Use this for setting your own memory location to be the image copied in.
width | the width of the image |
width | the height of the image |
bytesPerPixel | the number of bytes occupied per pixel (e.g. 4 for RGBA images) |
|
optional |
Set your own image buffer to copy the image into Use either this for setting your own memory location to be the image copied in.
width | the width of the image |
width | the height of the image |
bytesPerPixel | the number of bytes occupied per pixel (e.g. 4 for RGBA images) |
|
optional |
Receive the projection matrix Overloading this function will pass a projection matrix regarding the set near and far, width and height value of your screen.
data | A 16 element matrix holding the complete opengl capable projection matrix. |
|
optional |
Receive the intrinsic data Overloading this function will pass a projection matrix regarding the set near and far, width and height value of your screen.
width | Width in pixels of the original intrinsics |
height | Height in pixels of the original intrinsics |
cx | Normed horizontal principal point of the intrinsics 0..1 |
cy | Normed vertical principal point of the intrinsics 0..1 |
fx | The normalized focal length of the intrinsic camera calibration in x direction. |
fy | The normalized focal length of the intrinsic camera calibration in y direction. |
|
optional |
Will be called when the tracker has been done loading and is running now. Tracking issues are passed separated by errors and warnings. You should take these very serious. You can review a complete list of possible issues in the documentation.
When an error has occured, the tracking will NOT start working in anyway.
warning | Optional warnings may occured during initialization. |
errors | Optional errors may occured during initialization. |
|
optional |
Receive the internal visionLib Log. Depending on the configured log level you will receive the internal log messages from the visionlib. You might use these messages during development. Anyway it is NOT recommended using them for the end user nor parsing them. Defined issues should be gathered by using onIssuesTriggered:andErrors:.
logString | A NSString holding the message |
|
optional |
Retreives the configured Debug Image as a metal texture When overloading this function, a metal texture will be passed, when needed to be set or rendered as background texture functions like onGetDebugImageBufferWithWidth and/or onRawImageBuffer will not be called then, even if defined.
data | MTLTexture object |
m | A pointer to 16 item matrix holding a rotation matrix of the content to be rotated with |
|
optional |
Receive a metal image buffer (experimental) When overloading this function, a metal texture will be passed, when needed to be set or rendered as background texture functions like onGetImageBufferWithWidth and/or onRawImageBuffer will not be called then, even if defined.
data | The number of bytes occupied per pixel (e.g. 4 for RGBA images) |
width | The width of the image |
width | The height of the image |
bytesPerPixel | the number of bytes occupied per pixel (e.g. 4 for RGBA images) |
|
optional |
Retreives the configured Debug Image Overloading this function onGetDebugImageBufferWithWidth should not have been overloaded too. will provide you on every frame with fresh image data.
data | The number of bytes occupied per pixel (e.g. 4 for RGBA images) |
width | The width of the image |
width | The height of the image |
bytesPerPixel | the number of bytes occupied per pixel (e.g. 4 for RGBA images) |
|
optional |
Receive a raw image buffer Overloading this function onGetImageBufferWithWidth should not have been overloaded too. will provide you on every frame with fresh image data.
data | The number of bytes occupied per pixel (e.g. 4 for RGBA images) |
width | The width of the image |
width | The height of the image |
bytesPerPixel | the number of bytes occupied per pixel (e.g. 4 for RGBA images) |
|
optional |
Receive the reset state Will be called when a reset has occured (hard or soft)
hard | A bool indicating if a hard or soft reset has occured. |
|
optional |
When the tracker has been initialized Will be called when the tracker has been done loading and is running now or not. It is recommended also using the onIssuesTriggered:andErrors: function for more precise informations about the state of the tracking pipe.
worked | true or false |
|
optional |
Receive runtime tracking information on each frame Will pass a dictionary with information about the tracking quality etc into the application only if is tracking.
info | A Dictionary holding informations about the tracking |
"quality": 0.39441, // maps to tracking inlier ration for now
"state": "tracked", // Can be "tracked", "critical" or "lost"
"_InitInlierRatio": 0.731507, // The inlier ratio that has been present at the moment of initialization
"_InitNumOfCorresp": 365, // The number of correspondences used when initializing
"_TrackingInlierRatio": 0.39441, // The current inliner ratio
"_TrackingNumOfCorresp": 392, // The number of correspondences used actually
"_SFHFrameDist": 466.549, // Actual distance to last key frame
"_NumberOfTemplates": 83 // Number of reinitialization key frames learned
|
optional |
Receive the pause state. Will be called, when the tracking pause was issued.
worked | A boolean variable stating if the pause command has worked. |