- Description:
- Computes the sobel image filter kernel over a 5x5 window of imput image, for each pixel. This kernel is required in order to support the 5x5 mode of Canny Edge Detection.
- Method:
- Produces 2 separate output planes in a single pass through the image; one plane for X and one plane for Y. The sobel operators are defined as:
| -1 -2 0 +2 +1 | | -1 -4 -6 -4 -1 |
| -4 -8 0 +8 +4 | | -2 -8 -12 -8 -2 |
Gx = | -6 -12 0 +12 +6 | Gy = | 0 0 0 0 0 |
| -4 -8 0 +8 +4 | | +2 +8 +12 +8 +2 |
| -1 -2 0 +2 +1 | | +1 +4 +6 +4 +1 |
- Parameters
-
[in] | src[] | Pointer to array containing input image (UQ8.0) |
[in] | src_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst_x[] | Pointer to array containing X output image (SQ15.0) |
[in] | dst_x_addr[] | Pointer to structure containing dimensional information of dst_x |
[out] | dst_y[] | Pointer to array containing Y output image (SQ15.0) |
[in] | dst_y_addr[] | Pointer to structure containing dimensional information of dst_y |
- Assumptions:
- I/O buffer pointers are assumed to be not aliased.
- Output height should be == (Input height - 4)
- Output width should be == (Input width - 4) OR (Input width)
- Performance Considerations:
- For best performance, the following parameter settings are recommended:
- Set output width values to a multiple of 2
- Set widths equal to each other and equal to strides (allows processing over whole image in single loop)