I am building an image processing pipeline using OpenCV3 and TBB. When passing the image in a flow graph, it is being altered.
Here is a sample result of the image when passing through a inverse filter:
I wrote a unit test that passes images through a graph and compare the output to the original image:
https://gist.github.com/des0ps/74528673d271e3131c2ea2a2adaf5c8c
This test sometimes passes, and sometimes doesn't.
What is happening here and generally speaking, are cv::Mat supported by TBB?