It appears to be very important in my context (Ubuntu and indeed gtk): I am putting the visualization commands in a separate thread, and I had some random opencv gui crashes that didn’t go until I inserted a startWindowThread
where I was spawning my thread. Also, having that call makes indeed unnecessary, as you suggested, calling waitKey
.
So again, not at all a legacy or trivial function.