- Description:
- Thresholds an unsigned 8-bit input image and produces an unsigned 8-bit output Boolean image.
- Method:
- The thresholding is computed using the following equation:
dst(x,y) = falseValue if src(x,y) > upper
dst(x,y) = falseValue if src(x,y) < lower
dst(x,y) = trueValue otherwise
- Parameters
-
[in] | src[] | Pointer to array containing first input image (UQ8.0) |
[in] | src_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst[] | Pointer to array containing output image (UQ8.0) |
[in] | dst_addr[] | Pointer to structure containing dimensional information of dst |
[in] | upper | Parameter indicating upper threshold value |
[in] | lower | Parameter indicating lower threshold value |
[in] | trueVal | Parameter indicating true value for the output, if the input is outside the thresholds |
[in] | falseVal | Parameter indicating false value for the output, if the input is within the thresholds |
- 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 16
- Set all width values to a multiple of 16