Skip to content

quality_QualityBase

qualityclassOpenCV 5.0.0
import { quality_QualityBase } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSquality_QualityBase
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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

Quality Base Class ***********************************

Constructors and members

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.

compute

Compute quality score per channel with the per-channel score in each element of the resulting cv::Scalar. See specific algorithm for interpreting result scores

compute(img: Mat): Scalar;
img

comparison image, or image to evalute for no-reference quality algorithms

Returns

The Scalar result.

getQualityMap

Returns output quality map that was generated during computation, if supported by the algorithm

getQualityMap(dst: Mat): void;
dst

Output destination, filled by the native operation. dst argument (Mat).

clear

Implements Algorithm::clear()

clear(): void;

empty

Implements Algorithm::empty()

empty(): boolean;
Returns

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