programm in opencv for reduce images