×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    1

    Retrieve RGB data while capture.

    Hello.

    Im an interaction designer mostly dealing with CV projects on Processing. These days im creating some Mobile prototypes using J2ME S60 API.
    I would like to know how could it be possible to retrieve hue or color data from an ongoing capture. Basically what i am after is to create a capture object with a size of 1pixel by 140 pixels (setDisplaySize(1, 140) ? ) and get the color value (getRGB?) real-time. Id be glad if you can provide me a basic code snippet for this sort of operation.

    Thanks in advance.

  2. #2
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    53

    Re: Retrieve RGB data while capture.

    Suppose you have an image imgThumb. do as below to get the r,g,b values
    rawIntDummy = new int[imgThumb.getWidth() * imgThumb.getHeight()];
    imgThumb.getRGB(rawIntDummy, 0, imgThumb.getWidth(), 0, 0, imgThumb.getWidth(), imgThumb.getHeight());

Similar Threads

  1. How to retrieve data from setting item list????
    By babjan saheb in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-04-13, 16:07
  2. Replies: 4
    Last Post: 2008-12-13, 17:37
  3. How to capture camera raw data in buffer S60?
    By Priya_m in forum Symbian
    Replies: 1
    Last Post: 2007-07-24, 09:37
  4. Retrieve data from GPS
    By a.dionisi in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2006-10-11, 08:54
  5. Smart way to retrieve data by OutPutStream from RMS ?
    By akokchai in forum Mobile Java General
    Replies: 7
    Last Post: 2003-07-11, 22:20

Posting Permissions

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