From a07b31da4690dcc3307a1fc680b4cf796dbaeeb0 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 25 Oct 2015 19:34:44 -0400 Subject: [PATCH] just formatting cleanup --- dlib/matrix/matrix_subexp_abstract.h | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/dlib/matrix/matrix_subexp_abstract.h b/dlib/matrix/matrix_subexp_abstract.h index 7ec46bc59..2665d1b99 100644 --- a/dlib/matrix/matrix_subexp_abstract.h +++ b/dlib/matrix/matrix_subexp_abstract.h @@ -105,6 +105,24 @@ namespace dlib 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 ( @@ -129,24 +147,6 @@ namespace dlib 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 (