Problem statement:

The main objective of this project is to use point processing to make the photos more beautiful. There are four pictures: moon, sunset, mountain, and sky tower.

1.

Moon is downloaded from the course website and it was taken outside of the Koo Chen-Fu Memorial Library of the NTU College of Social Sciences at night.

Observations:

The whole photo seems too dark. Plotting the histogram, we can see that most of the pixels have levels of brightness below 75. Also, there are also many noises scattering all around the photo.

Histogram of the moon photo's brightness: almost all pixels are darker than 50 out of 255 

Methods:

Method: a 2×2 Gaussian filter with sigma 0.5, then a power-law transformation with gamma 0.5

First, I apply a Gaussian filter to reduce some noise. Since there is only a few bright spot in the photo, I choose to use power law transformation with a gamma value lower than 1 to enhance the contrast of darker region.

Result:

The moon photo, a building at night under a bright moon, shown before (left) and after (right) enhancement, which brings out the building and the sky

2.

Sunset is downloaded from the course website and it was taken somewhere near the ocean.

Observations:

The bottom half of the photo seems too dark. Plotting the histogram, there are two groups of pixels: one has an average value 15 and the other has an average value 150. The details of the bottom half of the photo seem mixed together.

Histogram of the sunset photo's brightness: one peak near 15 and another near 150

Methods:

Method: a power-law transformation with gamma 0.8, then the negative of a Laplacian filter with alpha 0.1

First, I apply a power law transformation with a gamma value lower than 1 to enhance the contrast of the bottom half of the photo. And then, in order to sharpen the details of the grass or whatever it is, I choose to use a negative of Laplacian filter.

Result:

The sunset photo, the sun setting over a grassy field, shown before (left) and after (right) enhancement, which brightens and sharpens the dark grass


3.

Mountain was taken in February when my classmates and I travelled to Japan. We stayed at a hotel in front of Mount. Fuji.

Observations:

Since it was taken in the morning before the sun rose, the cherry blossoms and those scenes in the foreground are quite dark. Plotting the histogram, we can see that there are a large group of pixels with the level of brightness below 50.

Histogram of the mountain photo's brightness: a large group of pixels below 50 and a broad spread up to about 230

Methods:

Method: histogram equalization, then a 2×2 average filter

First, I apply histogram equalization to enhance the contrast in the foreground. In order to blur some of the branches of the cherry blossoms, I choose to use an average filter with a size value 2*2 which is identical with a Gaussian filter with a size value 2*2 and with a sigma value 0.5.

Result:

The mountain photo, Mount Fuji above a lake at dawn, shown before (left) and after (right) enhancement, which brightens the dark trees and cars in the foreground

4.

Sky tower was taken under the Tokyo sky tower.

Observations:

The heads surround the photo are too dark to recognize. Also, the details around the edges of those heads are a little sharp.

Histogram of the sky tower photo's brightness: a tall peak of dark pixels near 10 and smaller peaks between 150 and 255

Methods:

First, I apply a power law transformation to enhance the contrast of those heads. Afterward, I choose to use an average filter to blur some sharping edges.

Method: a power-law transformation with gamma 0.5, then a 2×2 average filter

Result:

The sky tower photo, four people leaning over the camera beneath the Tokyo Skytree, shown before (left) and after (right) enhancement, which makes their shadowed faces visible

Discussion and conclusion:

In the beginning, I was googling about some terms about noise detection or noise reduction and tried to find some ways to automate the beatifying process. There are various answers but most of them are focused in a specific kind of noise. Despite we may find a region on a photo that is not affected by the noise which is sometimes hard to determine and calculate the distribution of the noise, there is still human involvement in the process of adjusting the photo.

Observing these photos, they all have a group of pixels with levels of brightness below 50. In the first case, most of levels of brightness are falling in the range of 0 to 50, so a contrast enhancement is needed. Since histogram equalization can create too many bright pixels while the scene should appear dark at night, a power law transformation is more appropriate to only enhance the contrast of the dark region. The similar reason applies to the second and the fourth case.

In conclusion, adjustments on photo contrast can help these photos become more beautiful. Power law transformation is more suitable to enhance a part of a photo in most cases. Also, average filter and Gaussian filter shares similar functionality that blur a photo and remove random noises. In a small window size, they even have a same value (average filter with size 2*2 and Gaussian filter with size 2*2 and with sigma 0.5). An average filter has a better performance than a Gaussian filter that uses convolutions, while Gaussian filter is better at separating frequencies which I will be investigate in the future work.