UIImage - implementing an auto levels algorithm

前端 未结 4 629
失恋的感觉
失恋的感觉 2020-12-24 09:58

I\'d like to implement an \"auto levels\" option for a UIImage that I am displaying in my iPhone app. Before I try to implement it myself, I was wondering if there are any i

4条回答
  •  不知归路
    2020-12-24 10:43

    You could try the CImg library... They have histogram and equalize functions on the docs. The equalize() function has pretty decent results, from the sample image. The license is LGPL, which may not be suitable for your project but is compatible with selling on the app store.

提交回复
热议问题