MFC edge extraction program (6 operators)