OpenCV  3.4.4
Open Source Computer Vision
samples/cpp/tutorial_code/ImgProc/Pyramids/Pyramids.cpp

An example using pyrDown and pyrUp functions