April 2020
Intermediate to advanced
438 pages
12h 2m
English
In this recipe, we will use the RANSAC algorithm to compute a robust match (feature-based alignment) between two images (of the Victoria Memorial Hall in Kolkata) with Harris Corner keypoints and Binary Robust Independent Elementary Features (BRIEF) binary descriptors and estimate a robust homography matrix (use the matrix to warp the second image on the first one, with/without using RANSAC). Let's start by importing the libraries required:
from skimage.feature import (corner_harris, corner_peaks, BRIEF, match_descriptors, plot_matches)from skimage.transform import ProjectiveTransform, warpfrom skimage.measure import ransacfrom skimage.io import imreadfrom skimage.color import rgb2grayimport numpy as npimport matplotlib.pylab ...
Read now
Unlock full access