Defines the Threshold Object Interface.
|
typedef struct _vx_threshold * | vx_threshold |
| The Threshold Object. A thresholding object contains the types and limit values of the thresholding required.
|
|
◆ vxCreateThreshold()
Creates a reference to a threshold object of a given type [R01029].
- Parameters
-
[in] | c | The reference to the overall context [R01030]. |
[in] | thresh_type | The type of threshold to create [R01031]. |
[in] | data_type | The data type of the threshold's value(s) [R01032]. |
- Returns
- A threshold reference
vx_threshold
[R01033]. Any possible errors preventing a successful creation should be checked using vxGetStatus
.
◆ vxReleaseThreshold()
Releases a reference to a threshold object [R01034]. The object may not be garbage collected until its total reference count is zero.
- Parameters
-
[in] | thresh | The pointer to the threshold to release [R01035]. |
- Postcondition
- After returning from this function the reference is zeroed [R01036].
- Returns
- A
The vx_status Constants
value.
- Return values
-
VX_SUCCESS | No errors; any other value indicates failure [R01037]. |
VX_ERROR_INVALID_REFERENCE | thresh is not a valid vx_threshold reference. |
◆ vxSetThresholdAttribute()
Sets attributes on the threshold object [R01038].
- Parameters
-
[in] | thresh | The threshold object to set [R01039]. |
[in] | attribute | The attribute to modify. Use a The threshold attributes. value [R01040]. |
[in] | ptr | The pointer to the value to which to set the attribute [R01041]. |
[in] | size | The size of the data pointed to by ptr [R01042]. |
- Returns
- A
The vx_status Constants
value.
- Return values
-
VX_SUCCESS | No errors; any other value indicates failure [R01043]. |
VX_ERROR_INVALID_REFERENCE | thresh is not a valid vx_threshold reference. |
◆ vxQueryThreshold()
Queries an attribute on the threshold object [R01044].
- Parameters
-
[in] | thresh | The threshold object to set [R01045]. |
[in] | attribute | The attribute to query. Use a The threshold attributes. value [R01046]. |
[out] | ptr | The location at which to store the resulting value [R01047]. |
[in] | size | The size of the container to which ptr points [R01048]. |
- Returns
- A
The vx_status Constants
value.
- Return values
-
VX_SUCCESS | No errors; any other value indicates failure [R01049]. |
VX_ERROR_INVALID_REFERENCE | thresh is not a valid vx_threshold reference. |