|
IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
|
OpenCV Histogram puzzle comparator class. More...


Public Member Functions | |
| def | __init__ (self, theParams=CfgHistogramCV()) |
| def | extractFeature (self, piece) |
| def | score (self, piece_A, piece_B) |
Public Member Functions inherited from MatchDifferent | |
| def | compare (self, piece_A, piece_B) |
| Compare two puzzle pieces. More... | |
Public Member Functions inherited from Matcher | |
| def | solveMatchedPuzzle (self, puzzle, sol) |
Additional Inherited Members | |
Public Attributes inherited from Matcher | |
| params | |
OpenCV Histogram puzzle comparator class.
| def __init__ | ( | self, | |
theParams = CfgHistogramCV() |
|||
| ) |
@brief Constructor for the puzzle piece histogram class. @param[in] tau Threshold param to determine difference.
Reimplemented from MatchDifferent.
| def extractFeature | ( | self, | |
| piece | |||
| ) |
@brief Compute histogram from the raw puzzle data.
See https://opencv-tutorial.readthedocs.io/en/latest/histogram/histogram.html
@param[in] piece Puzzle piece to use.
@param[out] Puzzle piece histogram.
Reimplemented from Matcher.
| def score | ( | self, | |
| piece_A, | |||
| piece_B | |||
| ) |
@brief Compute the score between two passed puzzle piece data. @param[in] piece_A Template instance saving a piece's info. @param[in] piece_B Template instance saving a piece's info. @param[out] Distance of the feature vectors. (Overload if not proper).
Reimplemented from Matcher.