Skip to content

img_hash_RadialVarianceHash

img_hashclassOpenCV 5.0.0
import { img_hash_RadialVarianceHash } 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 Radon transform.

See [tang2012perceptual] for details.

Constructors and members

static create

Create an owned img_hash_RadialVarianceHash instance with the supplied configuration.

Image hash based on Radon transform.

create(sigma: number, numOfAngleLine: number): img_hash_RadialVarianceHash | null;
3 available overloads
create(): img_hash_RadialVarianceHash | null;
create(sigma: number): img_hash_RadialVarianceHash | null;
create(sigma: number, numOfAngleLine: number): img_hash_RadialVarianceHash | null;
sigma

sigma argument (number).

numOfAngleLine

num of angle line argument (number).

Returns

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

getNumOfAngleLine

Return the num of angle line configured on this img_hash_RadialVarianceHash object.

getNumOfAngleLine(): number;
Returns

The number result.

getSigma

Return the sigma configured on this img_hash_RadialVarianceHash object.

getSigma(): number;
Returns

The number result.

setNumOfAngleLine

Set the num of angle line used by this img_hash_RadialVarianceHash object.

setNumOfAngleLine(value: number): void;
value

value argument (number).

setSigma

Set the sigma used by this img_hash_RadialVarianceHash object.

setSigma(value: number): void;
value

value argument (number).

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.