Why is openCV so fast?

asked 2017-10-21 15:27:00 -0500

yahoooooooo gravatar image

I've been using the JAVA wrapper for a school assignment, experimenting with a variety of OpenCV tools such as edge detection, hough transformation, ... The performance was always impressive.

Next, I tested out some algorithms found online. The performance was in no way comparable, it was easily 10x slower than OpenCV.

Why is that? I have no knowledge of OpenCL, is it responsible for the speed of the algorithms? Or is there more to it?

edit retag flag offensive close merge delete

Comments

1

there is more. SSE,AVX NEON openvx MKL BLAS TBB (and that's probably only half of it)

(none of it available from java)

berak gravatar imageberak ( 2017-10-21 17:11:13 -0500 )edit

All of it can be available from Java, it depends on the JVM implementation and how good it's JIT is (And believe me you won't see a better one anywhere else).

midn gravatar imagemidn ( 2019-04-05 05:24:01 -0500 )edit