Commit a07b31da authored by Davis King's avatar Davis King

just formatting cleanup

parent 52ecadf8
...@@ -105,6 +105,24 @@ namespace dlib ...@@ -105,6 +105,24 @@ namespace dlib
R(r, c) == m(r+row,c+col) R(r, c) == m(r+row,c+col)
!*/ !*/
// ----------------------------------------------------------------------------------------
const matrix_exp subm (
const matrix_exp& m,
const rectangle& rect
);
/*!
requires
- get_rect(m).contains(rect) == true
(i.e. rect is a region inside the matrix m)
ensures
- returns a matrix R such that:
- R.nr() == rect.height()
- R.nc() == rect.width()
- for all valid r and c:
R(r, c) == m(r+rect.top(), c+rect.left())
!*/
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
const matrix_exp subm_clipped ( const matrix_exp subm_clipped (
...@@ -129,24 +147,6 @@ namespace dlib ...@@ -129,24 +147,6 @@ namespace dlib
R(r, c) == m(r+box_clipped.top(),c+box_clipped.left()) R(r, c) == m(r+box_clipped.top(),c+box_clipped.left())
!*/ !*/
// ----------------------------------------------------------------------------------------
const matrix_exp subm (
const matrix_exp& m,
const rectangle& rect
);
/*!
requires
- get_rect(m).contains(rect) == true
(i.e. rect is a region inside the matrix m)
ensures
- returns a matrix R such that:
- R.nr() == rect.height()
- R.nc() == rect.width()
- for all valid r and c:
R(r, c) == m(r+rect.top(), c+rect.left())
!*/
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
const matrix_exp subm_clipped ( const matrix_exp subm_clipped (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment