img_hash_MarrHildrethHash
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;alphaint scale factor for marr wavelet (default=2).
scaleint level of scale factor (default = 1)
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;The this result.
getAlpha
img_hash_MarrHildrethHash.getAlpha: self explain
getAlpha(): number;The number result.
getScale
img_hash_MarrHildrethHash.getScale: self explain
getScale(): number;The number result.
setKernelParam
Set Mh kernel parameters
setKernelParam(alpha: number, scale: number): void;alphaint scale factor for marr wavelet (default=2).
scaleint 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.