Created
October 21, 2018 08:57
-
-
Save Veraokulo/416ee97736faeba9a002269ddb389dd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int maxDelta=50; | |
for(int i=0;i<1279;++i) | |
{ | |
for(int j=0;j<1023;++j) | |
{ | |
if(abs(pixels[i+1][j]-pixels[i][j])>maxDelta) | |
{ | |
alarm(i,j); | |
} | |
if(abs(pixels[i][j+1]-pixels[i][j])>maxDelta) | |
{ | |
alarm(i,j); | |
} | |
} | |
} | |
for(int i=0;i<1279;++i) | |
{ | |
if(abs(pixels[i+1][1023]-pixels[i][1023])>maxDelta) | |
{ | |
alarm(i,j); | |
} | |
} | |
for(int j=0;j<1023;++j) | |
{ | |
if(abs(pixels[1280][j+1]-pixels[1280][j])>maxDelta) | |
{ | |
alarm(i,j); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment