I maybe asking for the impossible, but I need an economic way to check which pixels of an image fall roughly into these categories.
I want to do this on the iPhone, and that's the problem (processing capacity).
There is this post, but the process seems too long. Maybe something like .NET's GetPixel() might work.
Help? :)
Asked
Active
Viewed 265 times
0
-
When you say "too long", you mean that you've tried it and profiled it, and the _running time_ is too long? – jscs Jun 12 '12 at 01:18
-
@Josh I ran the process with an NSLog instead of the pixel analysis and it took like 1.5 minutes. If I put all the code from the post above it will take forever, right? – OFRBG Jun 12 '12 at 01:22
-
4@Fiire NSLog is SOOO slow, it will take MUCH longer than manipulating pixels. My pixel manipulation method (compression) takes about 0.5 seconds, but with NSLog included it takes 5 or 6 minutes. – borrrden Jun 12 '12 at 02:02
-
Also see this creative solution -> http://stackoverflow.com/a/3763313/1155387 – borrrden Jun 12 '12 at 02:06
-
1What have you tried? What format are your images in? Are they UIImages? How large are they? – user1118321 Jun 12 '12 at 05:25
1 Answers
1
I don't really understand what you are calling "falling into categories", but you might try using GPUImage and create a custom filter. GPUImage uses OpenGL and hardware acceleration and can be considerably faster than pulling apart the pixel data in a single thread.

Steven Veltema
- 2,140
- 15
- 18