Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int y= 0;y < SIZE;y++)
- for(int x= 0;x< SIZE;x++)
- for(int k=0;k<RGB;k++){
- for(int i= -(N /2); i<= N/2; i++)
- for(int j= -(N/2); j<= N/2; j++){
- temp[y][x][k] += (int) (padded[(y + i) + 5][x + j + 5][k] * kernel[i + (N/2)][j + (N/2)]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement