image-js
Version:
Image processing and manipulation in JavaScript
17 lines • 538 B
TypeScript
import type { Image } from '../Image.js';
import type { Point } from '../geometry/index.js';
export interface MeanOptions {
/**
* Points to calculate mean from.
*/
points: Point[];
}
/**
* Compute the mean of an image. The mean can be either computed on each channel
* individually or on the whole image.
* @param image - Image to process.
* @param options - Mean options.
* @returns The mean pixel.
*/
export declare function mean(image: Image, options?: MeanOptions): number[];
//# sourceMappingURL=mean.d.ts.map