Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed freescal_cup_k22f
Diff: source/Camera.cpp
- Revision:
- 10:3424e7b66671
- Parent:
- 8:8f886cd6a59f
- Parent:
- 4:9730c81e3121
- Child:
- 15:b77dc649e4f3
diff -r 43c8e6d6724d -r 3424e7b66671 source/Camera.cpp --- a/source/Camera.cpp Tue Jan 13 16:43:40 2015 +0000 +++ b/source/Camera.cpp Tue Jan 13 16:53:09 2015 +0000 @@ -39,9 +39,11 @@ void passebas() { + unsigned int tamponpixel[256] = {0}; int ordre=7, i=0; + // Passe bas en partant de la gauche sur tamponpixel[0:127] for (i=ordre; i<128; i++) { for (int a=0; a<ordre; a++) { @@ -60,8 +62,11 @@ // Actualisation de l'image filtrée - for (i=0; i<128; i++) { - pixel[i]=tamponpixel[i]; + + for (i=0;i<128;i++) + { + pixel[i]=(tamponpixel[i]+tamponpixel[255-i])/2; + } }