Ask Your Question

Revision history [back]

OpenCV optimizations on Android Tegra3 platform

Hi.

For benchmarking purposes I have ported a OpenCV test application from the PC to my Android Tegra3 device (Nexus 7), using this guide.

Because my test application uses the old C API, I need to confirm if the optimizations are actually being applied to my program. The manual in chapter 19 implicitly suggests that only the C++ functions are optimized.

In order to test, I wrote a simple test comparing cv::medianBlur() againt cvSmooth (with CV_MEDIAN) and cv::add() against cvAdd(), but found no differences in runtime.

So the questions:

  1. Are the C API calls being optimized the same as the C++ API calls?

  2. How can I turn the optimizations on and off? The "OpenCV for Tegra Demo App" (link to google play) does it, but is seems the sources are not available for me to check how they do it.

Thank you.