Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6360811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:41:46+00:00 2026-05-24T23:41:46+00:00

I am trying to implement SLIC superpixel algorithm in Android tablet ( SLIC )

  • 0

I am trying to implement SLIC superpixel algorithm in Android tablet (SLIC)

I port the code which in C++ to work with android environment using stl-lib and all. What application doing is taking an image from camera and send data to process in native code.

I got the app running but the problem is that it took 20-30 second to process a single frame (640 x 400) while in my notebook running with visual studio application would be almost instantly finish!

I check the memory leak, their isn’t any… is their anything that might cause computation time to be way more expensive than VS2010 in notebook?

I know this question might be very open and not really specific but I’m really in the dark too. Hope you guys can help.

Thanks

PS. I check running time for each process, I think that every line of code execution time just went up. I don’t see any specific function that take way longer than usual.

PSS. Do you think follow may cause the slow?

  1. Memory size : investigated, during native not much of paused time show from GC
  2. STL-library : not investigate yet, is it possible that function like vector, max and min running in STL may cause significant slow?
  3. Android environment it self?
  4. Lower hardware specification of Android Tablet (Acer Iconia tab – 1GHz Nvidia Tegra 250 dual-core processor and has 1GB of RAM)
  5. Would be better to run in Java?

PSSS. If you have time please check out the code

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:41:46+00:00Added an answer on May 24, 2026 at 11:41 pm

    I’ve taken a look to your code and can make the following recommendations:

    1. First of all, you need to add the line APP_ABI := armeabi-v7a into your Application.mk file. Otherwise your code is compiled for old armv5te architecture where you have no any FPU (all floating point arithmetic is emulated), have less registers available and so on.
    2. Your SLIC implementation intensively uses double floating-point values for computation. You should replace them with float wherever possible because ARM still misses hardware support for double type.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to implement some code i found on a website which duplicates a
I am trying implement the Data transformation using Reflection 1 example in my code.
trying to implement a dialog-box style behaviour using a separate div section with all
im trying to implement simple secured client server communiction using WCF. when im launching
Im trying to implement a scenario using threads to execute concurrent commands on a
Im trying to implement multi-language support in my system, the other systems at work
Im trying to implement fade in effect to my mp3 player. I´m using FloatControl
SetFocus I'm trying implement the above Se Focus code in a Class Library that
Trying to implement this gallery on my website. http://coffeescripter.com/code/ad-gallery/ It is noted in the
iam trying to implement an Searchmachine into my site. Iam using Zend_Search_Lucene for this.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.