×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    3

    graphics.Image.getdata()

    Hi,

    I am fairly new to python and the S60 platform so please be gentle I have a requirement to create luminance histograms from images stored on the phone, I have so far been calling the Image.getpixel() (undocumented) function for every pixel in the image but this is pretty slow. Around 10 seconds to complete for a small-ish image.

    I am wondering if there is a faster technique, something like the Image.getdata() method in the PIL is what I am thinking? Any ideas would be appreciated.



    Thanks
    Last edited by pinkertc; 2008-06-11 at 11:13.

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    12

    Re: Image processing optimization

    I've just come across a similar problem myself and haven't managed to find a solution yet. I was looking for a method to return a list of all the pixels in an image in one call, does anyone know if theres a way to do that?

Similar Threads

  1. Python build problem
    By Santehnik.UA in forum Python
    Replies: 7
    Last Post: 2008-07-21, 07:34
  2. [Pys60, 3rd Ed.] build problems
    By MHOOO in forum Python
    Replies: 3
    Last Post: 2007-04-09, 19:00
  3. SIS fails
    By chirag_cel in forum Symbian C++
    Replies: 8
    Last Post: 2006-11-29, 10:06
  4. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •