Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
a1815ca8
Commit
a1815ca8
authored
Sep 08, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1758 from paroj:ovis_texup
parents
34f2e6e5
c64f925a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
ovis.hpp
modules/ovis/include/opencv2/ovis.hpp
+8
-2
ovis.cpp
modules/ovis/src/ovis.cpp
+5
-2
No files found.
modules/ovis/include/opencv2/ovis.hpp
View file @
a1815ca8
...
...
@@ -204,10 +204,16 @@ public:
/**
* set intrinsics of the camera
* @param K intrinsic matrix
*
* @param K intrinsic matrix or noArray(). If noArray() is specified, imsize
* is ignored and zNear/ zFar can be set separately.
* @param imsize image size
* @param zNear near clip distance or -1 to keep the current
* @param zFar far clip distance or -1 to keep the current
*/
CV_WRAP
virtual
void
setCameraIntrinsics
(
InputArray
K
,
const
Size
&
imsize
)
=
0
;
CV_WRAP
virtual
void
setCameraIntrinsics
(
InputArray
K
,
const
Size
&
imsize
,
float
zNear
=
-
1
,
float
zFar
=
-
1
)
=
0
;
};
/**
...
...
modules/ovis/src/ovis.cpp
View file @
a1815ca8
...
...
@@ -641,10 +641,13 @@ public:
}
}
void
setCameraIntrinsics
(
InputArray
K
,
const
Size
&
imsize
)
void
setCameraIntrinsics
(
InputArray
K
,
const
Size
&
imsize
,
float
zNear
,
float
zFar
)
{
Camera
*
cam
=
sceneMgr
->
getCamera
(
title
);
_setCameraIntrinsics
(
cam
,
K
,
imsize
);
if
(
zNear
>=
0
)
cam
->
setNearClipDistance
(
zNear
);
if
(
zFar
>=
0
)
cam
->
setFarClipDistance
(
zFar
);
if
(
!
K
.
empty
())
_setCameraIntrinsics
(
cam
,
K
,
imsize
);
}
void
setCameraLookAt
(
const
String
&
target
,
InputArray
offset
)
...
...
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