Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. fSum = 0;
  2. fSum+= pInImg[GetIndex(i - 1, j - 1, nW)] * 0.0625;
  3. fSum += pInImg[GetIndex(i - 1, j, nW)] * 0.125;
  4. fSum += pInImg[GetIndex(i - 1, j + 1, nW)] * 0.0625;
  5. fSum += pInImg[GetIndex(i, j - 1, nW)] * 0.125;
  6. fSum += pInImg[GetIndex(i, j, nW)] * 0.25;
  7. fSum += pInImg[GetIndex(i, j + 1, nW)] * 0.125;
  8. fSum += pInImg[GetIndex(i + 1, j - 1, nW)] * 0.0625;
  9. fSum += pInImg[GetIndex(i + 1, j, nW)] * 0.125;
  10. fSum += pInImg[GetIndex(i + 1, j + 1, nW)] * 0.0625;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement