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:
- 4:9730c81e3121
- Parent:
- 3:f6a91455109c
- Child:
- 10:3424e7b66671
--- a/source/Camera.cpp Tue Jan 13 15:51:53 2015 +0000 +++ b/source/Camera.cpp Tue Jan 13 16:17:59 2015 +0000 @@ -41,7 +41,7 @@ void passebas() { unsigned int tamponpixel[256] ={0}; - int ordre=7, i=0; + int ordre=25, i=0; // Passe bas en partant de la gauche sur tamponpixel[0:127] for (i=ordre;i<128;i++) @@ -67,6 +67,6 @@ // Actualisation de l'image filtrée for (i=0;i<128;i++) { - pixel[i]=tamponpixel[i]; + pixel[i]=(tamponpixel[i]+tamponpixel[255-i])/2; } } \ No newline at end of file