| Table of Contents / Matrix / Creation | Operators |
copy_matrix — Copy a matrix.
copy_matrix( : : MatrixID : MatrixCopyID)
The operator copy_matrix creates the new matrix MatrixCopy and copies all elements of the input Matrix to this new matrix. The input Matrix is defined by the matrix handle MatrixID. The operator returns the matrix handle MatrixCopyID of the matrix MatrixCopy. Access to the elements of the matrix is possible e.g. with the operator get_full_matrix. With this operator a matrix can be saved before the matrix is modified by the operators set_value_matrix, set_full_matrix, set_sub_matrix, or set_diagonal_matrix.
Example:
/ 3.0 1.0 -2.0 \ / 3.0 1.0 -2.0 \
Matrix = | -5.0 7.0 2.0 | -> MatrixCopy = | -5.0 7.0 2.0 |
\ -9.0 -4.0 1.0 / \ -9.0 -4.0 1.0 /
Matrix handle of the input matrix.
Matrix handle of the copied matrix.
If the parameters are valid, the operator copy_matrix returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
get_full_matrix, get_value_matrix
Foundation
| Table of Contents / Matrix / Creation | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |