First time here? Check out the FAQ!
answered 2016-09-20 04:02:03 -0600
imwrite is a blocking function, so the program won't continue until it's finished.
If you need to communicate with another thread, you can raise a flag after imread returns, so the other thread can access the image.