xaphod
xaphod

Reputation: 6804

How to automatically adjust a photo (ie. brighten, contrast) on iOS?

My iOS app (objective-C) handles photos. I'd like it to be able offer the user a way to automatically "adjust" an image, like how iOS itself does in the Photos app (little magic-wand icon), or how facebook does it. This basically means auto-brightness and auto-contrast adjustment.

So far i've found "filtrr" (more concerned with adding color it seems), and OpenCV (uhh, feels like using a nuclear missile to swat a fly with). Any other hints? Is there some library or a way of even doing this natively in iOS?

thx!

Upvotes: 1

Views: 800

Answers (1)

rickster
rickster

Reputation: 126127

  1. Look into Core Image for info on filters and how to apply them. Apple's programming guide is a good place to start.

  2. Once you're up and running with Core Image, see the autoAdjustmentFilters method for getting a set of filters that's preconfigured for "one touch enhance" kinds of usage.

Upvotes: 2

Related Questions