NsdkDepthSession
Depth feature session for NSDK. Provides control over depth sensing capabilities....
Declaration
final class NsdkDepthSessionSummary
Depth feature session for NSDK. Provides control over depth sensing capabilities.
Upon starting the depth session, NSDK will begin processing AR frames to generate depth data.
The latest depth data can be retrieved using latestDepth(), and latestImageParams()
provides information to synchronize the depth image with camera frame.
Methods
| Name | Type | Summary |
|---|---|---|
| configure | void | |
| featureStatus | NsdkFeatureStatus | The current feature status of the depth session. |
| latestDepth | NsdkAsyncState<DepthResult, AwarenessError> | Retrieves the latest depth result from the depth session. - Returns: An NsdkAsyncState containing either the latest DepthResult,or an AwarenessError. |
| latestImageParams | NsdkAsyncState<AwarenessImageParams, AwarenessError> | Retrieves the latest image parameters associated with the depth data. - Returns: An NsdkAsyncState containing either the latest AwarenessImageParams,or an AwarenessError. |
| start | void | Starts the depth session, enabling depth data processing with the current configuration. |
| stop | void | Stops the depth session, halting depth data processing. |
Nested Types
Structs
| Name | Type | Summary |
|---|---|---|
| Configuration | Configuration | The type of configuration used by this session |
Enums
| Name | Type | Summary |
|---|---|---|
| DepthMode | DepthMode | Options for different depth sensing modes. These trade off between performance and quality. |
Relationships
conforms to: NsdkFeatureSession
- Attention: This method must be called while the session is stopped,
or else configuration will fail. In that case, while this function returns without
throwing, configuration will still fail asynchronously. Use
featureStatus()to check that configuration has not failed.
- Parameter config: An object that defines this session's behavior.
Only settings that differ from the defaults will be applied.
- Throws:
NsdkError.invalidArgumentif the configuration is invalid.Check NSDK's C logs for more information.