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
!105
CUDA optical flow smoothing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
CUDA optical flow smoothing
feature/off-cuda
into
master
Overview
0
Commits
28
Pipelines
1
Changes
7
Merged
Sebastian Hahta
requested to merge
feature/off-cuda
into
master
5 years ago
Overview
0
Commits
28
Pipelines
1
Changes
7
Expand
Closes
#155 (closed)
0
0
Merge request reports
Viewing commit
47d7b3fa
Prev
Next
Show latest version
7 files
+
103
−
53
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
47d7b3fa
more changes; optflow with config option
· 47d7b3fa
Sebastian Hahta
authored
5 years ago
components/rgbd-sources/include/ftl/rgbd/frame.hpp
+
11
−
6
Options
@@ -19,20 +19,25 @@ static const channel_t kChanDisparity = 0x0008; // CV_32FC1
static
const
channel_t
kChanDeviation
=
0x0010
;
static
const
channel_t
kChanNormals
=
0x0020
;
static
const
channel_t
kChanConfidence
=
0x0040
;
static
const
channel_t
kChanFlow
=
0x0080
;
// CV_
32FC2 or CV_16FC2 (fix)
static
const
channel_t
kChanFlow
=
0x0080
;
// CV_
16SC2 (format 10.5) from NVOF
static
const
channel_t
kChanEnergy
=
0x0100
;
//static const channel_t kChanLeftGray = 0x0200; // not used // CV_8UC1
//static const channel_t kChanRightGray = 0x0400; // not used // CV_8UC1
// should l/r gray be removed (not that expensive to re-calculate if needed)?
static
const
channel_t
kChanLeftGray
=
0x0200
;
// CV_8UC1
static
const
channel_t
kChanRightGray
=
0x0400
;
// CV_8UC1
static
const
channel_t
kChanOverlay1
=
0x1000
;
// maximum number of available channels
static
const
unsigned
int
n_channels
=
1
1
;
static
const
unsigned
int
n_channels
=
1
3
;
inline
bool
isFloatChannel
(
ftl
::
rgbd
::
channel_t
chan
)
{
return
(
chan
==
ftl
::
rgbd
::
kChanDepth
||
chan
==
ftl
::
rgbd
::
kChanEnergy
);
}
// TODO: interpolation for scaling depends on channel type;
// NN for depth/disparity/optflow, linear/cubic/etc. for RGB
class
Frame
;
class
Frame
{
@@ -100,8 +105,8 @@ private:
case
kChanConfidence
:
return
7
;
case
kChanFlow
:
return
8
;
case
kChanEnergy
:
return
9
;
//
case kChanLeftGray: return 11;
//
case kChanRightGray: return 12;
case
kChanLeftGray
:
return
11
;
case
kChanRightGray
:
return
12
;
// should not happen (error); returned index is kChanNone
default:
return
0
;
}
Loading