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
Merge requests
!96
Feature/of smoothing
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Merged
Feature/of smoothing
feature/of-smoothing
into
master
Overview
0
Commits
6
Pipelines
1
Changes
5
Merged
Sebastian Hahta
requested to merge
feature/of-smoothing
into
master
5 years ago
Overview
0
Commits
6
Pipelines
1
Changes
5
Expand
Initial Optical Flow smoothing for disparity images
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
8c5f62a3
6 commits,
5 years ago
5 files
+
159
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
components/rgbd-sources/include/ftl/offilter.hpp
0 → 100644
+
31
−
0
Options
#pragma once
#include
<opencv2/core.hpp>
#include
<opencv2/core/cuda.hpp>
#include
<opencv2/cudaoptflow.hpp>
namespace
ftl
{
namespace
rgbd
{
class
OFDisparityFilter
{
public:
OFDisparityFilter
()
:
n_max_
(
0
),
threshold_
(
0.0
),
size_
(
0
,
0
)
{}
// TODO: invalid state
OFDisparityFilter
(
cv
::
Size
size
,
int
n_frames
,
float
threshold
);
void
filter
(
cv
::
Mat
&
disp
,
const
cv
::
Mat
&
rgb
);
private
:
int
n_
;
int
n_max_
;
float
threshold_
;
cv
::
Size
size_
;
cv
::
Mat
disp_
;
cv
::
Mat
gray_
;
cv
::
Mat
flowxy_
;
cv
::
Mat
flowxy_up_
;
cv
::
Ptr
<
cv
::
cuda
::
NvidiaOpticalFlow_1_0
>
nvof_
;
};
}
}
\ No newline at end of file
Loading