Monday, March 14, 2011

Inverting Image Brightness

When people first start playing with image editing software, they soon discover that they can invert the color of the image. They'll play around with this for awhile and then move on after their bit of fun.

Last year, I got it in my head that it would be neat to try inverting the brightness of an image without messing with the color. This turned out to be much more interesting than a normal inverted image.

Inverting Color

Most everyone in this day and age has seen an image with its color inverted. These images look odd and, depending on the original image, sometimes really darn cool.

Before/After of an inverted image.

What an invert operation on an image actually does is flip the RGB values of each pixel. This has the effect of turning all colors to their opposites, and making pixels which were dark turn light and light turn dark.

Inverting Brightness

If we want to invert the brightness of an image, all we have to do is invert the image and then correct the color. You can correct the color by shifting the hue of the image by 180 degrees. The results are fun to look at.

Inverting the brightness of the same image above.

As you can see, in the image above, the colors stay the same. The grass is still green, the flowers are still red, and the path still brown. The difference is the brightness (obviously, since we inverted the brightness of the image).

The red flowers, which used to be pinkish red, are now dark red. The lush deep green of the grass has turned into a much brighter, almost florescent green. Even more stunning are the sun beams, which, after having the brightness inverted, now give the appearance of darkness breaking through the trees.

If you want to see more, check out the images below.

After inverting the brightness, people look very creepy.

A Starcraft 2 screenshot.

A block shadow.

A desktop background I used for awhile.

2 comments:

  1. That block shadow inverted is sweet.

    ReplyDelete
  2. That is REALLY cool. I never thought of inverting brightness only. You're so clever. I like your observation of darkness coming though the trees. If you find other images that look particularly interesting after this let me know. Wonder how a glowing angel would look with the brightness inverted? Oh, how about a candle or a whole bunch of candles?

    ReplyDelete

Note: Only a member of this blog may post a comment.