Running an image algorithm on an Android phone

Source: Internet
Author: User

Debug image processing algorithm on PC I want to run on the Android phone and see how fast it takes a few steps.

1. Build an Android application, call the NDK code for your well-written image algorithm

2. Then put your code into the Jni file, write the android.mk, and then the Cgywin build. So for Android calls

3. Then compile your Java code into an apk and pull it to the phone to see the results.

In general, if you do not optimize, directly in the mobile phone running on the PC code, the results are generally miserable, generally need to optimize for the algorithm, fixed-point, neon,opencl and so on parallel computing, improve the parallel degree of the algorithm to improve the speed of operation.

Running an image algorithm on an Android phone

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.