Provides some helper methods.
More...
|
float | calculate_area (np.ndarray points) |
| Calculates area from given unordered coordinate points, representing the coordinates of a quadrilateral.
|
|
np.ndarray | mean_shift_gray (np.ndarray image, float dest_mean) |
| Applies a mean shift to given image.
|
|
np.ndarray | match (Union[cv2.BFMatcher, cv2.FlannBasedMatcher] matcher, KDTuple kd_left, KDTuple kd_right, float threshold=0.75) |
|
Provides some helper methods.
◆ calculate_area()
float util.Util.calculate_area |
( |
np.ndarray | points | ) |
|
|
static |
Calculates area from given unordered coordinate points, representing the coordinates of a quadrilateral.
- Parameters
-
points | Corners of the quadrilateral |
- Returns
- The area of quadrilateral
◆ match()
np.ndarray util.Util.match |
( |
Union[cv2.BFMatcher, cv2.FlannBasedMatcher] | matcher, |
|
|
KDTuple | kd_left, |
|
|
KDTuple | kd_right, |
|
|
float | threshold = 0.75 ) |
|
static |
@brief Performs a match between two KDTuples
Performs a KnnMatch between kd_left.descriptor and kd_right.descriptor.
Filters out the bad matches and returns the good matches as an np.ndarray
@param matcher Matcher object
@param threshold Filter threshold. Defaults to 0.75
@return Good matches
◆ mean_shift_gray()
np.ndarray util.Util.mean_shift_gray |
( |
np.ndarray | image, |
|
|
float | dest_mean ) |
|
static |
Applies a mean shift to given image.
- Parameters
-
image | Image to apply mean shift |
dest_mean | Destination mean |
- Returns
- Mean shifted image
The documentation for this class was generated from the following file: