Skip to content

img_hash_MarrHildrethHash

img_hashclassOpenCV 5.0.0
import { img_hash_MarrHildrethHash } 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.

Marr-Hildreth Operator Based Hash, slowest but more discriminative.

See [zauner2010implementation] for details.

Constructors and members

static create

Create an owned img_hash_MarrHildrethHash instance with the supplied configuration.

Marr-Hildreth Operator Based Hash, slowest but more discriminative.

create(alpha: number, scale: number): img_hash_MarrHildrethHash | null;
3 available overloads
create(): img_hash_MarrHildrethHash | null;
create(alpha: number): img_hash_MarrHildrethHash | null;
create(alpha: number, scale: number): img_hash_MarrHildrethHash | null;
alpha

int scale factor for marr wavelet (default=2).

scale

int level of scale factor (default = 1)

Returns

The img_hash_MarrHildrethHash | 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.

getAlpha

img_hash_MarrHildrethHash.getAlpha: self explain

getAlpha(): number;
Returns

The number result.

getScale

img_hash_MarrHildrethHash.getScale: self explain

getScale(): number;
Returns

The number result.

setKernelParam

Set Mh kernel parameters

setKernelParam(alpha: number, scale: number): void;
alpha

int scale factor for marr wavelet (default=2).

scale

int level of scale factor (default = 1)

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.