Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change contrast, brightness, saturation, or color of UIImage

I'm looking for a good way to modify some elements of UIImage like brightness, contrast, saturation (for colored images), and colors (colorize).

For now I use per pixel operations but it's not very fast. For each pixel in the image, I modify the color data for contrast, brightness etc. I use some sources from UIImageAdjust for brightness and contrast.

I'm looking for a more effective way to like blending the images with color (a faster way, but i can get what i want with CGBlendMode).

Any ideas ?

like image 565
rubijn Avatar asked May 09 '11 12:05

rubijn


People also ask

What is brightness contrast and saturation?

Brightness will increase the title exposure on your photo, while contrast makes highlights look brighter and shadows look darker. Saturation adds more pure colors to your photos, and Sharpness turns up clearly details rendered in your images.

What affects the saturation and contrast of an image?

The effect of saturation depends on contrast polarity.

What is contrast and saturation?

SATURATION CONTRAST. Saturation, or quality, relates to the degree of purity of a color. Contrast of saturation is the contrast between pure, intense colors and dull, diluted colors.

What is brightness and contrast of an image?

Brightness refers to the overall lightness or darkness of the image. Use the Brightness slider to adjust your image's luminosity level. Contrast is the difference in brightness between objects or regions.


1 Answers

Have a look at Apple's demo app GLImageProcessing, it's really fast:

enter image description hereenter image description here

like image 73
Nick Weaver Avatar answered Nov 12 '22 16:11

Nick Weaver