image-js
Version:
Image processing and manipulation in JavaScript
16 lines • 523 B
TypeScript
import type { Image } from '../Image.js';
import type { Point } from '../geometry/index.js';
export interface MedianOptions {
/**
* Points to calculate median from.
*/
points: Point[];
}
/**
* Returns the median pixel of the image. The median is computed on each channel individually.
* @param image - Image to process.
* @param options - Median options.
* @returns Median pixel.
*/
export declare function median(image: Image, options?: MedianOptions): number[];
//# sourceMappingURL=median.d.ts.map