![]() |
![]() |
Functions | |
void | IMG_sobel_7x7_16s (const short *restrict in, short *restrict out, short cols, short rows) |
void IMG_sobel_7x7_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 -1 -1 -2 -1 -1 -1 -1 -1 -1 -2 -1 -1 -1 -1 -1 -1 -2 -1 -1 -1 0 0 0 0 0 0 0 1 1 1 2 1 1 1 1 1 1 2 1 1 1 1 1 1 2 1 1 1 Vertical Mask: -1 -1 -1 0 1 1 1 -1 -1 -1 0 1 1 1 -1 -1 -1 0 1 1 1 -2 -2 -2 0 2 2 2 -1 -1 -1 0 1 1 1 -1 -1 -1 0 1 1 1 -1 -1 -1 0 1 1 1
yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyxxxxxxxxxxyyy yyyxxxxxxxxxxyyy yyyxxxxxxxxxxyyy yyyxxxxxxxxxxyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyy
tttXXXXXXXXXXzzz zzzXXXXXXXXXXzzz zzzXXXXXXXXXXzzz zzzXXXXXXXXXXttt 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.