[−][src]Function opencv::core::complete_symm
pub fn complete_symm(m: &mut Mat, lower_to_upper: bool) -> Result<()>
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
Parameters
- m: 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.
See also
flip, transpose
C++ default parameters
- lower_to_upper: false