Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes , all function of OpenCV which work on windows also work on android but when using with android ndk you need to be careful about vector indexing , vector indexing cause error with android ndk but yes all major functions work in android the same way in windows. For example

Mat alpha = alpha1.clone();     // It cause error in android ndk

For clone, you can't use any of these functions on vector index. You have to create a temporary instance of Mat and use cv::functions over it.

Mat alpha1 = ch[3];
Mat alpha =  alpha1.clone();

Yes , all function of OpenCV which work on windows also work on android but when using with android ndk you need to be careful about vector indexing , vector indexing cause error with android ndk but yes all major functions work in android the same way in windows. For example

Mat alpha = alpha1.clone();     // It cause error in android ndk

Correct way of using it with android ndk is , For clone, you can't use any of these functions on vector index. You have to create a temporary instance of Mat and use cv::functions over it.

Mat alpha1 = ch[3];
Mat alpha =  alpha1.clone();