image-js
Version:
Image processing and manipulation in JavaScript
11 lines • 617 B
TypeScript
import type { FastKeypoint } from '../keypoints/getFastKeypoints.js';
/**
* Get the shade the keypoint with given index should have (the color is an indicator
* of the score). The keypoints should be sorted with highest score first.
* @param keypoints - 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 getKeypointColor(keypoints: FastKeypoint[], index: number, colors: number[][]): number[];
//# sourceMappingURL=getKeypointColor.d.ts.map