Guest User

Untitled

a guest
Aug 14th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Variable block size sum of absolute difference calculation in C
  2. for(int shiftY = 0; shiftY++; shiftY < rangeY){
  3. for(int shiftX = 0; shiftX++; shiftX < rangeX){
  4. for(int x = 0; x < lenTemplateX; x++){
  5. for(int y = 0; y < lenTemplateY;y++){
  6.  
  7. SAD[shiftY][shiftX]=abs(template[x][y] - image[y + shiftY][x + shiftX]);
  8.  
  9. }}}}
Add Comment
Please, Sign In to add comment