The goal of this project is to implement algorithm that extract similar points or whole regions from two different images of the same building using OpenCV library and especially MSER algorithm (Maximally stable extremal regions). Images of building are taken in different time and have different hue, saturation, light and other conditions.
Based on the extracted regions, algorithm finds the same centers of key regions and merged images by these points to create a complete images of building with the presentation of its historical changes.
Functions used: MSER, fitEllipse, adaptiveThreshold, Canny, findContours
- MSER regions detection
MSER mser(int _delta, int _min_area, int _max_area, float _max_variation, float _min_diversity, int _max_evolution, double _area_threshold, double _min_margin, int _edge_blur_size);
- Fitting detected regions by ellipse
const vector<Point>& r; RotatedRect box = fitEllipse(r);
- Finding similar regions
- Merging images based on found regions
Interactive presentation of the historical buildings and visualising their changes in time.