CS194-26 Proj1:Images of the Russian Empire

Jose Xu: 3033303665

Method

Naive Method

The simple method is just crop the image to 3 part and then stack them. This will cause a huge misalignment. Here is want it looks like:

NCC Alignment

This method is to maximizes the dot product of the normalized, vectorized images. I used [-20,20] range to roll one image to another to get the best display

Image result

Bells & Whistles

Automatic cropping

Without cropping there are always color border line which is annoying. I tried 3 way to crop it. First is crop at the vary beginning and other one is crop after alignment. They both turn out not great. In the end, I tried crop one way at beginning and other way after alignment which works better.

comparison

before

after

before

after

before

after

Automatic white balance

The goal of white balancing is make the picture neutral bright. For doing this, I centralized the a and b value in LAB color scheme

comparison

before

after

before

after

before

after

Challenge and difficulty

I was facing a really bad situation which is the code work for most of the picture but not the village one. it looks like this

solution

The green photo for this one is too heave which make it a bit different with the other two picture, and one solution is just do NCC on blue and red first then stack it on to green one. We can use histogram to identify which one is most different with the others.