Tha Nagao filtering

Hello

I’m a real beginner in programming graphical applications with OpenGL.
For one of my new application, I need the Nagao algorithm.
Is there anybody here who could help me by sending me the source code (in C language) ?

Thank you very much