Skip to content

img_hash_ColorMomentHash

img_hashclassOpenCV 5.0.0
import { img_hash_ColorMomentHash } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits img_hash_ImgHashBase.

Image hash based on color moments.

See [tang2012perceptual] for details.

Constructors and members

static create

Create an owned img_hash_ColorMomentHash instance with the supplied configuration.

Image hash based on color moments.

create(): img_hash_ColorMomentHash | null;
Returns

The img_hash_ColorMomentHash | null result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.