TUTGAK-Stitcher
An image stitcher library written in python
 
Loading...
Searching...
No Matches
homography_calculator.HomographyCalculator Class Reference

Provides methods for calculating homography matrices and measuring their error. More...

Static Public Member Functions

np.ndarray calculate_homography_error (np.ndarray points, np.ndarray H)
 Calculates an error value for the given homography matrix.
 
np.ndarray calculate_homography (np.ndarray pairs)
 Calculates the homography matrix for the given pairs of points.
 
Optional[np.ndarray] ransac (np.ndarray matches, int random_point_count, float threshold, int iterations)
 Use RANSAC to calculate a good homography matrix.
 

Detailed Description

Provides methods for calculating homography matrices and measuring their error.

Member Function Documentation

◆ calculate_homography()

np.ndarray homography_calculator.HomographyCalculator.calculate_homography ( np.ndarray pairs)
static

Calculates the homography matrix for the given pairs of points.

Parameters
pairsMatching pairs of coordinates
Returns
Homography matrix

◆ calculate_homography_error()

np.ndarray homography_calculator.HomographyCalculator.calculate_homography_error ( np.ndarray points,
np.ndarray H )
static

Calculates an error value for the given homography matrix.

Parameters
pointsPoint pairs
HHomography matrix
Returns
An error value for each point

◆ ransac()

Optional[np.ndarray] homography_calculator.HomographyCalculator.ransac ( np.ndarray matches,
int random_point_count,
float threshold,
int iterations )
static

Use RANSAC to calculate a good homography matrix.

Parameters
matchesMatched points
random_point_countThe amount of random points used to calculate the homography matrix
thresholdError threshold
iterationsNumber of iterations
Returns
A good homography matrix, or None if none could be found

The documentation for this class was generated from the following file: