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

Provides some helper methods. More...

Static Public Member Functions

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)
 

Detailed Description

Provides some helper methods.

Member Function Documentation

◆ 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
pointsCorners 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
imageImage to apply mean shift
dest_meanDestination mean
Returns
Mean shifted image

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