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
Admin message
Maintenance on Tuesday 15.4. at 14:00. ETA 60 - 90 minutes.
Show more breadcrumbs
Nicolas Pope
ftl
Commits
a0c13794
Commit
a0c13794
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Allow motion rate control
parent
f6d49adb
No related branches found
No related tags found
2 merge requests
!116
Implements #133 point alignment
,
!114
Ongoing #133 improvements
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
applications/reconstruct/src/ilw/ilw.cpp
+6
-1
6 additions, 1 deletion
applications/reconstruct/src/ilw/ilw.cpp
applications/reconstruct/src/ilw/ilw.hpp
+1
-0
1 addition, 0 deletions
applications/reconstruct/src/ilw/ilw.hpp
with
7 additions
and
1 deletion
applications/reconstruct/src/ilw/ilw.cpp
+
6
−
1
View file @
a0c13794
...
...
@@ -16,6 +16,7 @@ using cv::cuda::GpuMat;
ILW
::
ILW
(
nlohmann
::
json
&
config
)
:
ftl
::
Configurable
(
config
)
{
enabled_
=
value
(
"ilw_align"
,
true
);
iterations_
=
value
(
"iterations"
,
1
);
motion_rate_
=
value
(
"motion_rate"
,
0.4
f
);
on
(
"ilw_align"
,
[
this
](
const
ftl
::
config
::
Event
&
e
)
{
enabled_
=
value
(
"ilw_align"
,
true
);
...
...
@@ -25,6 +26,10 @@ ILW::ILW(nlohmann::json &config) : ftl::Configurable(config) {
iterations_
=
value
(
"iterations"
,
1
);
});
on
(
"motion_rate"
,
[
this
](
const
ftl
::
config
::
Event
&
e
)
{
motion_rate_
=
value
(
"motion_rate"
,
0.4
f
);
});
flags_
=
0
;
if
(
value
(
"ignore_bad"
,
false
))
flags_
|=
ftl
::
cuda
::
kILWFlag_IgnoreBad
;
if
(
value
(
"restrict_z"
,
true
))
flags_
|=
ftl
::
cuda
::
kILWFlag_RestrictZ
;
...
...
@@ -58,7 +63,7 @@ bool ILW::process(ftl::rgbd::FrameSet &fs, cudaStream_t stream) {
}
_phase1
(
fs
,
win
,
stream
);
//for (int j=0; j<3; ++j) {
_phase2
(
fs
,
0.4
f
,
stream
);
_phase2
(
fs
,
motion_rate_
,
stream
);
//}
// TODO: Break if no time left
...
...
This diff is collapsed.
Click to expand it.
applications/reconstruct/src/ilw/ilw.hpp
+
1
−
0
View file @
a0c13794
...
...
@@ -62,6 +62,7 @@ class ILW : public ftl::Configurable {
bool
enabled_
;
unsigned
int
flags_
;
int
iterations_
;
float
motion_rate_
;
};
}
...
...
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