Detect black pixel in image iOS

前端 未结 3 1227
一生所求
一生所求 2020-12-16 08:51

As of now I am searching every pixel 1 by 1 checking the color and seeing if it\'s black... if it isn\'t I move on to the next pixel. This is taking forever as I can only ch

3条回答
  •  渐次进展
    2020-12-16 09:27

    There is no way you should be doing this with a timer (or no reason I can think of anyway!).

    How big are your images? It should be viable to process the entire image in a single loop reasonably quickly.

提交回复
热议问题