Hi,

I am working on an image processing application. The job is simple:

1. read an image into a Bitmap object A,
2. create a new Bitmap object B of the same dimensions,
3. iterate over Bitmap A examining each pixel and copying it to B if
it satisfies some conditions,
4. display Bitmap B using ImageView.

The trouble is that though the application is working correctly, it is
too slow to use. For a JPEG image of 547x450 resolution, the
application takes 66 seconds to produce the final output. The getPixel
function seems to be taking approx 1/100 of a second. Similarly,
checking whether each pixel satisfies the condition and then copying
it to Bitmap B also takes approx 1/100 second. Therefore, performing
these 2 operations for 547*450 = 246150 pixels takes a lot of time. Is
there any way to do this faster? I hope to use this for processing
each frame of a video in real-time. So, processing each picture must
not take more than a 1/20 of a second.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to