This is very specific `main()`, I see no reason why it should be provided inside the public OpenCV API.
Please move the code to the place where it's used (ocl module test).