First time here? Check out the FAQ!
opencvtest.cpp:21:30: error: ‘REDUCE_AVG’ was not declared in this scope reduce(gray, reduced_h,0,REDUCE_AVG);