@thi.ng/pixel-convolve
Version:
Extensible bitmap image convolution, kernel presets, normal map & image pyramid generation
16 lines • 754 B
TypeScript
import type { FloatBuffer } from "@thi.ng/pixel/float";
import type { KernelSpec } from "./api.js";
/**
* Yields an iterator of progressively downsampled versions of `src` (using
* `kernel` for filtering, default: {@link LANCZOS}(2)). Each image will be half
* size of the previous result, stopping only once either width or height
* becomes less than `minSize` (default: 1). If `includeOrig` is enabled
* (default), the first emitted image will be the original `src`.
*
* @param src -
* @param kernel -
* @param minSize -
* @param includeOrig -
*/
export declare function imagePyramid(src: FloatBuffer, kernel?: KernelSpec, minSize?: number, includeOrig?: boolean): Generator<FloatBuffer, void, unknown>;
//# sourceMappingURL=pyramid.d.ts.map