image-js
Version:
Image processing and manipulation in JavaScript
11 lines • 584 B
TypeScript
import type { Match } from '../matching/bruteForceMatch.js';
/**
* Get the shade of the match with given index (the color is an indicator
* of the distance). The matches should be sorted with smallest distance first.
* @param matches - The sorted keypoints.
* @param index - Index of the keypoint.
* @param colors - The colors from which to pick (sorted from brightest to darkest).
* @returns The color the keypoint should have.
*/
export declare function getMatchColor(matches: Match[], index: number, colors: number[][]): number[];
//# sourceMappingURL=getMatchColor.d.ts.map