Jose Xu: 3033303665
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:
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
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.
before
after
before
after
before
after
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
before
after
before
after
before
after
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
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.