image-js
Version:
Image processing and manipulation in JavaScript
19 lines • 707 B
TypeScript
import type { Image } from '../../Image.js';
import type { Point } from '../../geometry/index.js';
export interface CompareIntensityOptions {
/**
* Origin of the points coordinates relative to the top-left corner.
* @default `image.getCoordinates('center')`
*/
origin?: Point;
}
/**
* Compare the intensity of two pixels of a GREY image.
* @param image - Source image of the pixels.
* @param p1 - First point.
* @param p2 - Second point.
* @param options - Options.
* @returns Wether p1 is darker that p2.
*/
export declare function compareIntensity(image: Image, p1: Point, p2: Point, options?: CompareIntensityOptions): boolean;
//# sourceMappingURL=compareIntensity.d.ts.map