Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
31ae7d58
Commit
31ae7d58
authored
Apr 12, 2013
by
Davis King
Browse files
Gave point_transform_affine member functions so the user can find
out what the transformation matrix is.
parent
fc6d6744
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
dlib/geometry/point_transforms.h
dlib/geometry/point_transforms.h
+6
-0
dlib/geometry/point_transforms_abstract.h
dlib/geometry/point_transforms_abstract.h
+16
-0
No files found.
dlib/geometry/point_transforms.h
View file @
31ae7d58
...
...
@@ -93,6 +93,12 @@ namespace dlib
return
m
*
p
+
b
;
}
const
matrix
<
double
,
2
,
2
>&
get_m
(
)
const
{
return
m
;
}
const
dlib
::
vector
<
double
,
2
>&
get_b
(
)
const
{
return
b
;
}
private:
matrix
<
double
,
2
,
2
>
m
;
dlib
::
vector
<
double
,
2
>
b
;
...
...
dlib/geometry/point_transforms_abstract.h
View file @
31ae7d58
...
...
@@ -26,6 +26,8 @@ namespace dlib
);
/*!
ensures
- #get_m() == m
- #get_b() == b
- When (*this)(p) is invoked it will return a point P such that:
- P == m*p + b
!*/
...
...
@@ -39,6 +41,20 @@ namespace dlib
to p and returns the result.
!*/
const
matrix
<
double
,
2
,
2
>&
get_m
(
)
const
;
/*!
ensures
- returns the transformation matrix used by this object.
!*/
const
dlib
::
vector
<
double
,
2
>&
get_b
(
)
const
;
/*!
ensures
- returns the offset vector used by this object.
!*/
};
// ----------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment