- Description:
- Performs subtraction between two signed 16-bit images and results in a signed 16-bit image. The overflow handling is controlled by an overflow-policy parameter. Use VXLIB_CONVERT_POLICY_WRAP as the parameter for wrap and VXLIB_CONVERT_POLICY_SATURATE for saturate.
- Method:
- The subtraction is computed using the following equation:
dst(x,y) = src0(x,y) - src1(x,y)
- Parameters
-
[in] | src0[] | Pointer to array containing first input image (SQ15.0) |
[in] | src0_addr[] | Pointer to structure containing dimensional information of src0 |
[in] | src1[] | Pointer to array containing second input image (SQ15.0) |
[in] | src1_addr[] | Pointer to structure containing dimensional information of src1 |
[out] | dst[] | Pointer to array containing output image (SQ15.0) |
[in] | dst_addr[] | Pointer to structure containing dimensional information of dst |
[in] | overflow_policy | Parameter indicating overflow policy |
- Assumptions:
- I/O buffer pointers are assumed to be not aliased.
- Performance Considerations:
- For best performance, the following parameter settings are recommended:
- Set widths equal to strides
- Align all pointers to 8 byte boundaries
- Set all stride values to a multiple of 8
- Set all width values to a multiple of 8