| 313 | } |
| 314 | |
| 315 | MAT RoundMat( // return mat with entries rounded to integers |
| 316 | const MAT& mat) // in |
| 317 | { |
| 318 | MAT newmat(mat.rows, mat.cols); |
| 319 | for (int i = 0; i < mat.rows; i++) |
| 320 | for (int j = 0; j < mat.cols; j++) |
| 321 | { |
| 322 | newmat(i, IX) = cvRound(mat(i, IX)); |
| 323 | newmat(i, IY) = cvRound(mat(i, IY)); |
| 324 | } |
| 325 | |
| 326 | return newmat; |
| 327 | } |
| 328 | |
| 329 | // Force pinned landmarks in shape to their pinned position. |
| 330 | // This also returns the mean distance from the output shape to pinnedshape. |
no outgoing calls
no test coverage detected