Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Best way to apply a function to each element of Mat (Android)

Hello,

I've seen the thread here with the same request but the two main answers were to use pointers and to use parallel methods. Neither are really available on the Android implementation of OpenCV.

What would be the fastest way to apply a function (like sin(pi/k * element^2)?

Best way to apply a function to each element of Mat (Android)

Hello,

I've seen the thread here with the same request but the two main answers were to use pointers and to use parallel methods. Neither are really available on the Android implementation of OpenCV.

What would be the fastest way to apply a function (like like sin(pi/k * element^2)?element^2) on Android OpenCV?

Best way to apply a function to each element of Mat (Android)

Hello,

I've seen the thread here with the same request but the two main answers were to use pointers and to use parallel methods. Neither are really available on the Android implementation of OpenCV.

What would be the fastest way to apply a function like sin(pi/k * element^2) on Android OpenCV?OpenCV and then insert that value into another matrix?

Best way to apply a function to each element of Mat (Android)

Hello,

I've seen the thread here with the same request but the two main answers were to use pointers and to use parallel methods. Neither are really available on the Android implementation of OpenCV.

What would be the fastest way to apply a function like sin(pi/k * element^2) on Android OpenCV and then insert that value into another matrix?

edit: related question: is it faster to collect elements in a Java array first and then insert all of them at once as a row instead of individually with .put()