image-js
Version:
Image processing and manipulation in JavaScript
21 lines • 708 B
TypeScript
import type { Image } from '../Image.js';
export interface IncreaseContrastOptions {
/**
* Image to which to output.
*/
out?: Image;
/**
* Level all channels uniformly in order to preserve the color balance.
* @default false
*/
uniform?: boolean;
}
/**
* Increase the contrast of an image by spanning each channel on the range [0, image.maxValue].
* This algorithm is based on the level algorithm.
* @param image - The image to enhance.
* @param options - Increase contrast options.
* @returns The enhanced image.
*/
export declare function increaseContrast(image: Image, options?: IncreaseContrastOptions): Image;
//# sourceMappingURL=increaseContrast.d.ts.map