Skip to content

loadChromaticAberrationParams

Computational photographyfunctionOpenCV 5.0.0
import { loadChromaticAberrationParams } from '@banou/opencv-wasm'

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

ARGUMENTSnode, coeffMat
FUNCTIONloadChromaticAberrationParams
RETURN TYPEloadChromaticAberrationParamsResult
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Load chromatic-aberration calibration parameters from opened FileStorage.

R e*ads the red and blue polynomial coefficients from the specified file and packs them into a 4×N CV_32F matrix: row 0 = blue dx coefficients row 1 = blue dy coefficients row 2 = red dx coefficients row 3 = red dy coefficients

See: correctChromaticAberration

loadChromaticAberrationParams(node: FileNode, coeffMat: Mat): loadChromaticAberrationParamsResult;
node

Node of opened cv::FileStorage object.

coeffMat

Output destination, filled by the native operation. Output 4xN coefficient matrix (CV_32F).

Returns

The loadChromaticAberrationParamsResult result. Scalar output parameters are returned as named fields in this object. 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.