c++ sobel operator 구현 코드
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677void convert_greyscale_image_to_sobel(void){ unsigned const int n = 3; int sobel_x[n][n] = {-1,-2,-1,0,0,0,1,2,1}; int sobel_y[n][n] = {-1,0,1,-2,0,2,-1,0,1}; int R_patch[n][n] = { 0, 0,0,0,0,0,0,0,0}; int patch_y = -1; int patch_x = -1; for (int i = 0; i