1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Programming with images

Discussion in 'Programming' started by JimmyRP, Feb 15, 2012.

  1. #1
    I am looking to start a project that deals with images and I don't really know how to get started. Basically, I want to take an image, and get the RGB or hex code for the image for each pixel, pixel by pixel. So if an image was 10x10 pixels, I would want 100 pieces of data for that image. A push in the right direction is all that I am looking for.

    Thanks,
    Jimmy
    SEMrush
     
    JimmyRP, Feb 15, 2012 IP
    SEMrush
  2. CodeBeast

    CodeBeast Well-Known Member

    Messages:
    462
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    105
    #2
    Go with JAVA - it contains powerfull libraries to do the job you mentioned.
     
    CodeBeast, Feb 15, 2012 IP
    JimmyRP likes this.
  3. Arttu

    Arttu Member

    Messages:
    139
    Likes Received:
    2
    Best Answers:
    8
    Trophy Points:
    40
    #3
    Depending on what language you are gonna be using but it's gonna be something like this:

    for x to imageWidth
    for y to imageHeight
    getpixel(x,y)
     
    Arttu, Feb 17, 2012 IP
  4. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,730
    Likes Received:
    26
    Best Answers:
    13
    Trophy Points:
    125
    #4
    When using PHP it would cost about 10-20 minutes to create, upload image, get list with all color codes (x,y,color).
     
    EricBruggema, Feb 17, 2012 IP
  5. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    94
    Best Answers:
    7
    Trophy Points:
    0
    #5
    According to me, I think PHP is the best language.
     
    drhowarddrfine, Feb 18, 2012 IP