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
cb580616
Commit
cb580616
authored
Jan 01, 2014
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getViewerPose implementation simplified (and error seems to be fixed)
parent
186853a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
vizimpl.cpp
modules/viz/src/vizimpl.cpp
+1
-14
No files found.
modules/viz/src/vizimpl.cpp
View file @
cb580616
...
...
@@ -387,20 +387,7 @@ cv::Affine3d cv::viz::Viz3d::VizImpl::getViewerPose()
Vec3d
z_axis
=
normalized
(
focal
-
pos
);
Vec3d
x_axis
=
normalized
(
y_axis
.
cross
(
z_axis
));
cv
::
Matx33d
R
;
R
(
0
,
0
)
=
x_axis
[
0
];
R
(
0
,
1
)
=
y_axis
[
0
];
R
(
0
,
2
)
=
z_axis
[
0
];
R
(
1
,
0
)
=
x_axis
[
1
];
R
(
1
,
1
)
=
y_axis
[
1
];
R
(
1
,
2
)
=
z_axis
[
1
];
R
(
2
,
0
)
=
x_axis
[
2
];
R
(
2
,
1
)
=
y_axis
[
2
];
R
(
2
,
2
)
=
z_axis
[
2
];
return
cv
::
Affine3d
(
R
,
pos
);
return
makeTransformToGlobal
(
x_axis
,
y_axis
,
z_axis
,
pos
);
}
/////////////////////////////////////////////////////////////////////////////////////////////
...
...
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