|
IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
|
Uses shape moments to establish similarity. More...


Public Member Functions | |
| def | __init__ (self, theParams=CfgMoments()) |
| def | extractFeature (self, piece) |
| def | score (self, piece_A, piece_B) |
| Compute the score between two passed puzzle piece data. More... | |
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 | |
Uses shape moments to establish similarity.
| def __init__ | ( | self, | |
theParams = CfgMoments() |
|||
| ) |
@brief Constructor for the puzzle piece moments class. @param[in] tau Threshold param to determine difference.
Reimplemented from MatchDifferent.
| def extractFeature | ( | self, | |
| piece | |||
| ) |
@brief Compute moments from the raw puzzle data. See https://learnopencv.com/shape-matching-using-hu-moments-c-python/ @param[in] piece Puzzle piece to use. @param[out] huMoments: A list of huMoments value.
Reimplemented from Matcher.
| def score | ( | self, | |
| piece_A, | |||
| piece_B | |||
| ) |