|
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 | |
| tuple[float, np.ndarray] | estimateAffineMatch (self, piece_A, piece_B) |
| Estimate the rigid affine transform that aligns piece A to piece B. More... | |
| "Matcher" | fit (self, groups, list[str]|None labels=None) |
| Given raw data regarding expected element instances, identify model to differentiate them if possible for this matcher type. More... | |
| "Matcher" | fitFromImageSegmented (self, Irgb, Iseg, hasLabs=False) |
| Given an image and a segmentation, generate fit. More... | |
| def | solveMatchedPuzzle (self, puzzle, sol) |
Additional Inherited Members | |
Static Public Member Functions inherited from Matcher | |
| tuple[np.ndarray, np.ndarray] | pcaFrame (piece) |
| Estimate a signed PCA frame from a puzzle piece's foreground pixels. More... | |
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 | |||
| ) |