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
546c084f
Commit
546c084f
authored
Nov 26, 2013
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed shadow error and added ocv_disable_module
parent
0e88733b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
affine.hpp
modules/core/include/opencv2/core/affine.hpp
+7
-7
CMakeLists.txt
modules/viz/CMakeLists.txt
+1
-1
No files found.
modules/core/include/opencv2/core/affine.hpp
View file @
546c084f
...
...
@@ -161,9 +161,9 @@ cv::Affine3<T>::Affine3(const Mat3& R, const Vec3& t)
}
template
<
typename
T
>
inline
cv
::
Affine3
<
T
>::
Affine3
(
const
Vec3
&
rvec
,
const
Vec3
&
t
)
cv
::
Affine3
<
T
>::
Affine3
(
const
Vec3
&
_
rvec
,
const
Vec3
&
t
)
{
rotation
(
rvec
);
rotation
(
_
rvec
);
translation
(
t
);
matrix
.
val
[
12
]
=
matrix
.
val
[
13
]
=
matrix
.
val
[
14
]
=
0
;
matrix
.
val
[
15
]
=
1
;
...
...
@@ -208,9 +208,9 @@ void cv::Affine3<T>::rotation(const Mat3& R)
}
template
<
typename
T
>
inline
void
cv
::
Affine3
<
T
>::
rotation
(
const
Vec3
&
rvec
)
void
cv
::
Affine3
<
T
>::
rotation
(
const
Vec3
&
_
rvec
)
{
double
rx
=
rvec
[
0
],
ry
=
rvec
[
1
],
rz
=
rvec
[
2
];
double
rx
=
_rvec
[
0
],
ry
=
_rvec
[
1
],
rz
=
_
rvec
[
2
];
double
theta
=
std
::
sqrt
(
rx
*
rx
+
ry
*
ry
+
rz
*
rz
);
if
(
theta
<
DBL_EPSILON
)
...
...
@@ -253,9 +253,9 @@ void cv::Affine3<T>::rotation(const cv::Mat& data)
}
else
if
((
data
.
cols
==
3
&&
data
.
rows
==
1
)
||
(
data
.
cols
==
1
&&
data
.
rows
==
3
))
{
Vec3
rvec
;
data
.
reshape
(
1
,
3
).
copyTo
(
rvec
);
rotation
(
rvec
);
Vec3
_
rvec
;
data
.
reshape
(
1
,
3
).
copyTo
(
_
rvec
);
rotation
(
_
rvec
);
}
else
CV_Assert
(
!
"Input marix can be 3x3, 1x3 or 3x1"
);
...
...
modules/viz/CMakeLists.txt
View file @
546c084f
if
(
NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK
)
return
()
ocv_module_disable
()
endif
()
include
(
${
VTK_USE_FILE
}
)
...
...
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