Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
bf6dfb95
Commit
bf6dfb95
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Fix for camera device bug
parent
441a703f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#11286
passed
5 years ago
Stage: all
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/rgbd-sources/src/stereovideo.cpp
+11
-7
11 additions, 7 deletions
components/rgbd-sources/src/stereovideo.cpp
components/rgbd-sources/src/stereovideo.hpp
+2
-0
2 additions, 0 deletions
components/rgbd-sources/src/stereovideo.hpp
with
13 additions
and
7 deletions
components/rgbd-sources/src/stereovideo.cpp
+
11
−
7
View file @
bf6dfb95
...
...
@@ -15,12 +15,22 @@ using std::unique_lock;
StereoVideoSource
::
StereoVideoSource
(
ftl
::
rgbd
::
Source
*
host
)
:
ftl
::
rgbd
::
detail
::
Source
(
host
)
{
init
(
""
);
}
StereoVideoSource
::
StereoVideoSource
(
ftl
::
rgbd
::
Source
*
host
,
const
string
&
file
)
:
ftl
::
rgbd
::
detail
::
Source
(
host
),
ready_
(
false
)
{
init
(
file
);
}
StereoVideoSource
::~
StereoVideoSource
()
{
delete
disp_
;
delete
calib_
;
delete
lsrc_
;
}
void
StereoVideoSource
::
init
(
const
string
&
file
)
{
if
(
ftl
::
is_video
(
file
))
{
// Load video file
LOG
(
INFO
)
<<
"Using video file..."
;
...
...
@@ -77,12 +87,6 @@ StereoVideoSource::StereoVideoSource(ftl::rgbd::Source *host, const string &file
ready_
=
true
;
}
StereoVideoSource
::~
StereoVideoSource
()
{
delete
disp_
;
delete
calib_
;
delete
lsrc_
;
}
static
void
disparityToDepth
(
const
cv
::
Mat
&
disparity
,
cv
::
Mat
&
depth
,
const
cv
::
Mat
&
q
)
{
cv
::
Matx44d
_Q
;
q
.
convertTo
(
_Q
,
CV_64F
);
...
...
This diff is collapsed.
Click to expand it.
components/rgbd-sources/src/stereovideo.hpp
+
2
−
0
View file @
bf6dfb95
...
...
@@ -39,6 +39,8 @@ class StereoVideoSource : public detail::Source {
cv
::
Mat
left_
;
cv
::
Mat
right_
;
cv
::
Mat
mask_l_
;
void
init
(
const
std
::
string
&
);
};
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment