Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
478af745
Commit
478af745
authored
Nov 14, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added inv() that invert point transformation functions.
parent
01fa1f22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
point_transforms.h
dlib/geometry/point_transforms.h
+19
-0
point_transforms_abstract.h
dlib/geometry/point_transforms_abstract.h
+22
-0
No files found.
dlib/geometry/point_transforms.h
View file @
478af745
...
...
@@ -126,6 +126,16 @@ namespace dlib
dlib
::
vector
<
double
,
2
>
b
;
};
// ----------------------------------------------------------------------------------------
inline
point_transform_affine
inv
(
const
point_transform_affine
&
trans
)
{
matrix
<
double
,
2
,
2
>
im
=
inv
(
trans
.
get_m
());
return
point_transform_affine
(
im
,
-
im
*
trans
.
get_b
());
}
// ----------------------------------------------------------------------------------------
template
<
typename
T
>
...
...
@@ -203,6 +213,15 @@ namespace dlib
matrix
<
double
,
3
,
3
>
m
;
};
// ----------------------------------------------------------------------------------------
inline
point_transform_projective
inv
(
const
point_transform_projective
&
trans
)
{
return
point_transform_projective
(
inv
(
trans
.
get_m
()));
}
// ----------------------------------------------------------------------------------------
namespace
impl_proj
...
...
dlib/geometry/point_transforms_abstract.h
View file @
478af745
...
...
@@ -57,6 +57,17 @@ namespace dlib
};
// ----------------------------------------------------------------------------------------
point_transform_affine
inv
(
const
point_transform_affine
&
trans
);
/*!
ensures
- If trans is an invertible transformation then this function returns a new
transformation that is the inverse of trans.
!*/
// ----------------------------------------------------------------------------------------
template
<
typename
T
>
...
...
@@ -134,6 +145,17 @@ namespace dlib
};
// ----------------------------------------------------------------------------------------
point_transform_projective
inv
(
const
point_transform_projective
&
trans
);
/*!
ensures
- If trans is an invertible transformation then this function returns a new
transformation that is the inverse of trans.
!*/
// ----------------------------------------------------------------------------------------
point_transform_projective
find_projective_transform
(
...
...
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