img_hash_BlockMeanHash
import { img_hash_BlockMeanHash } 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 block mean.
See [zauner2010implementation] for details.
Constructors and members
static create
Create an owned img_hash_BlockMeanHash instance with the supplied configuration.
Image hash based on block mean.
create(mode: number): img_hash_BlockMeanHash | null;2 available overloads
create(): img_hash_BlockMeanHash | null;create(mode: number): img_hash_BlockMeanHash | null;modemode argument (number).
The img_hash_BlockMeanHash | 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.
setMode
Create BlockMeanHash object
setMode(mode: number): void;modethe mode
getMean
Return the mean configured on this img_hash_BlockMeanHash object.
getMean(): DoubleVector;The DoubleVector result. Release returned native handles with using or delete(), including handles nested in results.
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.