Provides methods for calculating homography matrices and measuring their error.
More...
|
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.
|
|
Provides methods for calculating homography matrices and measuring their error.
◆ calculate_homography()
np.ndarray homography_calculator.HomographyCalculator.calculate_homography |
( |
np.ndarray | pairs | ) |
|
|
static |
Calculates the homography matrix for the given pairs of points.
- Parameters
-
pairs | Matching 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
-
points | Point pairs |
H | Homography 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
-
matches | Matched points |
random_point_count | The amount of random points used to calculate the homography matrix |
threshold | Error threshold |
iterations | Number 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:
- src/homography_calculator.py