Advertisement
Guest User

for loop

a guest
Oct 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. for(int y= 0;y < SIZE;y++)
  2. for(int x= 0;x< SIZE;x++)
  3. for(int k=0;k<RGB;k++){
  4. for(int i= -(N /2); i<= N/2; i++)
  5. for(int j= -(N/2); j<= N/2; j++){
  6. temp[y][x][k] += (int) (padded[(y + i) + 5][x + j + 5][k] * kernel[i + (N/2)][j + (N/2)]);
  7.  
  8. }
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement