I am wondering how I can scan an image on the iPhone and analyze the RGB value of each pixel, thus finally determining the average RGB for the whole image. If anyone could push me in the right direction it would be greatly appreciated. I am new to image analysis and not sure where to start, or if something like this is included in the iOS 5 APIs.
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Use savefig in Python with string and iterative in
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Where does this quality loss on Images come from?
Look at Camera Programming Topics for iOS - Taking Pictures and Movies this will get the image in your app.
After that look at something like: how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone
Just Paste it, i'm detecting the color on touch .
}
}
Getting the CGImage from a UIImage can give you this data
More here: Getting pixel data from UIImageView -- works on simulator, not device
And Here: Get Pixel color of UIImage