-
Notifications
You must be signed in to change notification settings - Fork 0
Pairwise Matching
ereoh edited this page Nov 1, 2023
·
6 revisions
Run Graph Matching on a batch of images.
pMatch = runGraphMatchBatch(datapath,viewList,'all', 0, wEdge=0);
- datapath: filepath of image class
- viewList: list of hypercols files for class
- pairingMode: type of pairing mode for matches (all, loop, neighbor)
- pairingParam: the radius of the neighborhood if pairing mode is loop or neighbor
- wEdge: type of linear/graph matching (0, 1, 2, ect)
- pairMatches: Numpy array of pairwiseMatches class, shape is (len(viewList), len(viewList))
Run Graph Matching on two images.
matchData = graphMatch(viewPair, wEdge)
- viewPair: tuple of two hypercols filepaths
- (optional)methodGM: Method for solving graph matching (sm, rw)
- (optional)methodDisc: Method for discretization (greedy, hungry)
- (optional)wEdge: Weigth of rigidicity
- (optional)wAngle: no idea tbh
- (optional)kNNInit: number of candidate correpondences for each feature
- (optional)nMaxInit: total number of candidate correpondences after optimization
- (optional)thScore: threshold of matching scores below which the match is ignored
- (optional)thRatio: no idea, threshold ratio ?
- (optional)thDist: no idea, threshold distance ?
- mData: a pairwiseMatches class
Performs initial Matching
simScores, matchInds = initMatch(viewPair,kNNInit,nMaxInit,thScore,thRatio)
- viewPair: tuple of two hypercols filpaths
- kNNInit: k value for k nearest neighbors
- nMaxInit:
- threshScore:
- threshRatio:
- simScores: Numpy array of similarity scores
- matchInds: Numpy array match indices
Performs Greedy Matching
X = greedyMatch(matchInfo, Xraw)
- match: numpy array of matches
- score: Xraw, similarity scores, 1D, horizontal
- (optional)nMax: kinda wack, convergence condition?
- flag: numpy array of greedy matches, (score.shape[0], 1)