Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Java Multi threads with OpenCV 3.3.1

Hi.

I have a process for calculate the quantity of colors by width and build a histogram. Work fine!!

When I put this process in 50, 100 or 200 threads, it crash (block) in:

 double[] values = mat.get(w,c)

This statment corresponds to native code following:

org.opencv.core.Mat.nGet(JII)

If that code will syncronized, it will work fine again!!

How can I solve this problem without synchronization?