The OpenCV for Android tutorial<http://opencv.org/platforms/android/android-best-practices.html>recommends to use Mat put method, but Mat.setTo() instead to improve
performance, because JNI-calls are really expensive.

I am confused. Why isn't Mat.setTo() JNI-call when put method is?

And between using OpenCV Java API and using C++ API, whose performance is
better?

I find out that since OpenCV 2.4.3, the integration with OpenCV and the
custom layout view is implemented by using:
public Mat onCameraFrame(Mat inputFrame) {}
So it seems to suggest the user to use Java API?

--

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupandroid-opencv @
categoriesandroid
postedDec 31, '12 at 11:54p
activeDec 31, '12 at 11:54p
posts1
users1
websiteandroid.com

1 user in discussion

Linda Li: 1 post

People

Translate

site design / logo © 2019 Grokbase