Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
328f0e32
Commit
328f0e32
authored
Jul 12, 2013
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added makeTransformToGlobal() function
parent
6045ae85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
6 deletions
+33
-6
viz.hpp
modules/viz/include/opencv2/viz.hpp
+12
-3
precomp.hpp
modules/viz/src/precomp.hpp
+1
-1
viz.cpp
modules/viz/src/viz.cpp
+20
-2
No files found.
modules/viz/include/opencv2/viz.hpp
View file @
328f0e32
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
//
//
//M*/
//M*/
#ifndef __OPENCV_VIZ_HPP
#ifndef __OPENCV_VIZ_HPP
__
#define __OPENCV_VIZ_HPP
#define __OPENCV_VIZ_HPP
__
#include <opencv2/viz/types.hpp>
#include <opencv2/viz/types.hpp>
...
@@ -53,5 +53,14 @@
...
@@ -53,5 +53,14 @@
#include <opencv2/viz/viz3d.hpp>
#include <opencv2/viz/viz3d.hpp>
#endif __OPENCV_VIZ_HPP
namespace
temp_viz
{
//! takes coordiante frame data and builds transfrom to global coordinate frame
CV_EXPORTS
Affine3f
makeTransformToGlobal
(
const
Vec3f
&
axis_x
,
const
Vec3f
&
axis_y
,
const
Vec3f
&
axis_z
,
const
Vec3f
&
origin
=
Vec3f
::
all
(
0
));
CV_EXPORTS
Affine3f
makeCameraPose
(
const
Vec3f
&
position
,
const
Vec3f
&
focal_point
,
const
Vec3f
&
up_vector
);
}
#endif
/* __OPENCV_VIZ_HPP__ */
modules/viz/src/precomp.hpp
View file @
328f0e32
...
@@ -154,8 +154,8 @@
...
@@ -154,8 +154,8 @@
#include <q/viz3d_impl.hpp>
#include <q/viz3d_impl.hpp>
#include <opencv2/core.hpp>
#include <opencv2/core.hpp>
#include <opencv2/viz.hpp>
#include "opencv2/viz/widget_accessor.hpp"
#include "opencv2/viz/widget_accessor.hpp"
#include <opencv2/viz/widgets.hpp>
#include <opencv2/calib3d.hpp>
#include <opencv2/calib3d.hpp>
namespace
temp_viz
namespace
temp_viz
...
...
modules/viz/src/viz.cpp
View file @
328f0e32
#include "precomp.hpp"
#include "precomp.hpp"
\ No newline at end of file
cv
::
Affine3f
temp_viz
::
makeTransformToGlobal
(
const
Vec3f
&
axis_x
,
const
Vec3f
&
axis_y
,
const
Vec3f
&
axis_z
,
const
Vec3f
&
origin
)
{
Affine3f
::
Mat3
R
;
R
.
val
[
0
]
=
axis_x
.
val
[
0
];
R
.
val
[
3
]
=
axis_x
.
val
[
1
];
R
.
val
[
6
]
=
axis_x
.
val
[
2
];
R
.
val
[
1
]
=
axis_y
.
val
[
0
];
R
.
val
[
4
]
=
axis_y
.
val
[
1
];
R
.
val
[
7
]
=
axis_y
.
val
[
2
];
R
.
val
[
2
]
=
axis_z
.
val
[
0
];
R
.
val
[
5
]
=
axis_z
.
val
[
1
];
R
.
val
[
8
]
=
axis_z
.
val
[
2
];
return
Affine3f
(
R
,
origin
);
}
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