doImageProcessing2 in main.cpp