Skip to content

quality_QualityMSE

qualityclassOpenCV 5.0.0
import { quality_QualityMSE } 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 quality_QualityBase.

Full reference mean square error algorithm https://en.wikipedia.org/wiki/Mean_squared_error

Constructors and members

static compute1

static method for computing quality

compute1(ref: Mat, cmp: Mat, qualityMap: Mat): Scalar;
ref

reference image

cmp

comparison image=

qualityMap

Output destination, filled by the native operation. output quality map, or cv::noArray()

Returns

cv::Scalar with per-channel quality values. Values range from 0 (best) to max float (worst)

static create

Create an object which calculates quality

create(ref: Mat): quality_QualityMSE | null;
ref

input image to use as the reference for comparison

Returns

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

compute

Computes MSE for reference images supplied in class constructor and provided comparison images

compute(cmpImgs: MatVector): Scalar;
cmpImgs

Comparison image(s)

Returns

cv::Scalar with per-channel quality values. Values range from 0 (best) to potentially max float (worst)

empty

Implements Algorithm::empty()

empty(): boolean;
Returns

The boolean result.

clear

Implements Algorithm::clear()

clear(): void;

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.