![]() |
![]() |
Functions | |
void | IMG_sobel_3x3_16s (const short *restrict in, short *restrict out, short cols, short rows) |
void IMG_sobel_3x3_16s | ( | const short *restrict | in, | |
short *restrict | out, | |||
short | cols, | |||
short | rows | |||
) |
in | Input image pointer | |
out | Output image pointer | |
cols | Number of columns in the image | |
rows | Number of rows in the image |
Horizontal Mask: -1 -2 -1 0 0 0 1 2 1 Vertical Mask: -1 0 1 -2 0 2 -1 0 1
yyyyyyyyyyyyyyyy yxxxxxxxxxxxxxxy yxxxxxxxxxxxxxxy yxxxxxxxxxxxxxxy yxxxxxxxxxxxxxxy yyyyyyyyyyyyyyyy
tXXXXXXXXXXXXXXz zXXXXXXXXXXXXXXz zXXXXXXXXXXXXXXz zXXXXXXXXXXXXXXt Where: X = sobel(x) The algorithm is applied to that pixel. The correct output is obtained, the data surrounding the pixel is used t Data in the output buffer in that position is unaltered z = sobel(y) The algorithm is applied to that pixel. The output is not meaningful since the data necessary to process the pixel is not available.