![]() |
![]() |
Functions | |
void | IMG_sobel_5x5_16s (const short *restrict in, short *restrict out, short cols, short rows) |
void IMG_sobel_5x5_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 -4 -6 -4 -1 -2 -8 -12 -8 -2 0 0 0 0 0 2 8 12 8 2 1 4 6 4 1 Vertical Mask: 1 2 0 -2 -1 4 8 0 -8 -4 6 12 0 -12 -6 4 8 0 -8 -4 1 2 0 -2 -1
yyyyyyy yyyyyyy yyxxxyy yyxxxyy yyxxxyy yyyyyyy yyyyyyy
ttXXXzz zzXXXzz zzXXXtt 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.