Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variable block size sum of absolute difference calculation in C
- for(int shiftY = 0; shiftY++; shiftY < rangeY){
- for(int shiftX = 0; shiftX++; shiftX < rangeX){
- for(int x = 0; x < lenTemplateX; x++){
- for(int y = 0; y < lenTemplateY;y++){
- SAD[shiftY][shiftX]=abs(template[x][y] - image[y + shiftY][x + shiftX]);
- }}}}
Add Comment
Please, Sign In to add comment