Skip to content

completeSymm

Core and matricesfunctionOpenCV 5.0.0
import { completeSymm } from '@banou/opencv-wasm'

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

ARGUMENTSm, lowerToUpper
FUNCTIONcompleteSymm
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Copies the lower or the upper half of a square matrix to its another half.

The function cv::completeSymm copies the lower or the upper half of a square matrix to its another half. The matrix diagonal remains unchanged:

  • \texttt{m}_{ij}=\texttt{m}_{ji} for i > j if lowerToUpper=false
  • \texttt{m}_{ij}=\texttt{m}_{ji} for i < j if lowerToUpper=true

See: flip, transpose

completeSymm(m: Mat, lowerToUpper: boolean): void;
2 available overloads
completeSymm(m: Mat): void;
completeSymm(m: Mat, lowerToUpper: boolean): void;
m

Input/output value, modified by the native operation. input-output floating-point square matrix.

lowerToUpper

operation flag; if true, the lower half is copied to the upper half. Otherwise, the upper half is copied to the lower half.

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.