I use both OpenCV and SystemC for several applications with great satisfaction.
Now I have this application where I need to display images from OpenCV in the SystemC simulation environment. For some reason, however, both packages seem to be incompatible "at runtime":
- There is no problem calling cvNamedWindow or cvShowImage in the SystemC class before calling sc_start ().
- However, when cvNamedWindow or cvShowImage is called in sc_thread, program execution is interrupted (Thread 1: EXC_BAD_ACCESS (code = 2, address = 0x7c91ad70)).
There is no problem with requesting frames (cvQueryFrame), only window-related functions seem to cause problems. If anyone has an idea what might cause this problem, and if there is a solution or workaround for this problem, that would be great.
Mihil
PS I am using xcode, but I believe that the problem is not related to the coding environment.
source share