Realization
Basic Alignment
Automatic crop the white and black boundary of the images
Automatic Contrast, linear map every channel to (0,255)
Better feature of edge Extraction, using edge instead of raw RGB pixel for alignment
Color Transfer, transfer the color by adjusting the standard deviation and mean according to reference, this one is for fun
Result
1. Alignment
Good Result
Bad Result
Reason: For picture with uniform texture like grass, edge feature result is not ideal for representing the information
2. Auto Contrasting
2. Color Transfer
original img
reference img
Output