image-js
Version:
Image processing and manipulation in JavaScript
19 lines • 1.07 kB
TypeScript
import type { BriefDescriptor } from '../descriptors/getBriefDescriptors.js';
import type { Match } from './bruteForceMatch.js';
/**
* Get the crosscheck matches from the source and destination descriptors.
* @param source - Source descriptors.
* @param destination - Destination descriptors.
* @returns The array of crossckeck matches.
*/
export declare function getCrosscheckMatches(source: BriefDescriptor[], destination: BriefDescriptor[]): Match[];
/**
* Return the indices of pairs the keypoints that are mutually the best match.
* This means that if B is the best match for A, A should be the best match for B.
* The distance of the resulting matches is the maximum distance between the two.
* @param srcDstMatches - Best matches computed from source do destination.
* @param dstSrcMatches - Best matches computed from destination to source.
* @returns The pairs of keypoints that are mutually the best match.
*/
export declare function crosscheck(srcDstMatches: Match[], dstSrcMatches: Match[]): Match[];
//# sourceMappingURL=getCrosscheckMatches.d.ts.map