Colour comparison?

Discussion in 'iPhone/iPad Programming' started by Abunga, Mar 20, 2011.

  1. macrumors newbie

    Abunga

    Joined:
    Jan 25, 2011
    #1
    Heya all,

    I am looking at which idea to put forward for an app and wondering if the SDK has classes that allow the IPhone to take a photo and then analyse the image for a colour? (Almost like a piece of comparison code that asks if certain colours exist in the image taken.)

    Probably a stupid question but thought i'd ask the Rumors Collective Mind. :rolleyes:
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Not directly no. There are ways to get the pixel data of an image that you could then iterate over and do whatever you want. But you have to write it all yourself: the iteration, the colour comparison etc.
     
  3. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    There are already at least a half dozen apps in the store that do this, but not by just calling an API or existing library function.
     
  4. thread starter macrumors newbie

    Abunga

    Joined:
    Jan 25, 2011
    #4
    Thought So...

    Thanks guys, I thought there might be a way, just wasn't sure.

    I want to use it as an way of forming a basic ID.

    For example, if an image was taken of a red car, the app would call ALL red car images from its library to show the user.

    Either way, looks like I may need to look at the ideas you have given.

    Appreciated, thanks. :eek:
     

Share This Page