Uses pca to calculate rotation.
More...
|
| def | __init__ (self, theParams=CfgPCA()) |
| | Constructor for the puzzle piece histogram class. More...
|
| |
| def | extractFeature (self, piece) |
| |
| def | score (self, piece_A, piece_B) |
| |
| def | compare (self, piece_A, piece_B) |
| | Compare two puzzle pieces. More...
|
| |
| 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) |
| |
|
| def | getEig (img) |
| |
| tuple[np.ndarray, np.ndarray] | pcaFrame (piece) |
| | Estimate a signed PCA frame from a puzzle piece's foreground pixels. More...
|
| |
Uses pca to calculate rotation.
- Note
- What is the purpose of this particular matcher?
◆ __init__()
| def __init__ |
( |
|
self, |
|
|
|
theParams = CfgPCA() |
|
) |
| |
Constructor for the puzzle piece histogram class.
- Parameters
-
| [in] | tau | Threshold param to determine difference. |
Reimplemented from MatchDifferent.
◆ extractFeature()
| def extractFeature |
( |
|
self, |
|
|
|
piece |
|
) |
| |
@brief Get the puzzle centroid value.
@param[in] piece Puzzle piece to use.
@param[out] The rotation of the main vector.
Reimplemented from Matcher.
◆ getEig()
@brief To find the major and minor axes of a blob.
See https://alyssaq.github.io/2015/computing-the-axes-or-orientation-of-a-blob/ for details.
Args: img: A mask image.
Returns: dict: A dict saving centerized points, main vectors.
◆ score()
| 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] The degree distance between passed puzzle piece data and stored puzzle piece. (counter-clockwise)
Reimplemented from Matcher.
The documentation for this class was generated from the following file: