OpenMP burning CPU cycles: cv::resize() is very slow unless cv::imshow() is used

That’s right. cv::resize() takes 2ms when the output then is shown using cv::imshow(). Removing the imshow() call slows down resize 10 to 20ms.

What could be going on?