image-js
Version:
Image processing and manipulation in JavaScript
27 lines • 1.08 kB
TypeScript
import type { Image } from '../../Image.js';
import type { Point } from '../../geometry/index.js';
export interface GetPatchIntensityMomentOptions {
/**
* Center of the circular window.
* @default `image.getCoordinates('center')`
*/
center?: Point;
/**
* Radius of the circular window.
* @default `3`
*/
radius?: number;
}
/**
* Compute the pq order intensity moment of the circular patch with given radius in the image,
* relatively to the origin defined in the options.
* Original article: {@link https://doi.org/10.1006/cviu.1998.0719}.
* @see {@link https://en.wikipedia.org/wiki/Image_moment}
* @param image - Image to process.
* @param p - Order along x.
* @param q - Order along y.
* @param options - Get intensity moment options.
* @returns The intensity moment of order pq of the circular window relative to the center.
*/
export declare function getPatchIntensityMoment(image: Image, p: number, q: number, options?: GetPatchIntensityMomentOptions): number[];
//# sourceMappingURL=getPatchIntensityMoment.d.ts.map