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
5d81e76b
Commit
5d81e76b
authored
6 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Add comments
parent
b69425ac
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cv-node/CMakeLists.txt
+3
-4
3 additions, 4 deletions
cv-node/CMakeLists.txt
cv-node/src/algorithms/rtcensus.cu
+4
-0
4 additions, 0 deletions
cv-node/src/algorithms/rtcensus.cu
with
7 additions
and
4 deletions
cv-node/CMakeLists.txt
+
3
−
4
View file @
5d81e76b
...
@@ -11,8 +11,8 @@ enable_testing()
...
@@ -11,8 +11,8 @@ enable_testing()
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
set
(
THREADS_PREFER_PTHREAD_FLAG ON
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/cmake/"
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/cmake/"
)
if
(
WIN32
)
find_package
(
glog REQUIRED
)
find_package
(
glog REQUIRED
)
if
(
WIN32
)
include_directories
(
${
glog_DIR
}
)
include_directories
(
${
glog_DIR
}
)
endif
(
WIN32
)
endif
(
WIN32
)
find_package
(
OpenCV REQUIRED
)
find_package
(
OpenCV REQUIRED
)
...
@@ -61,8 +61,8 @@ if (UNIX)
...
@@ -61,8 +61,8 @@ if (UNIX)
endif
(
UNIX
)
endif
(
UNIX
)
add_definitions
(
"-DFTL_CONFIG_ROOT=
${
FTL_CONFIG_ROOT
}
"
)
add_definitions
(
"-DFTL_CONFIG_ROOT=
${
FTL_CONFIG_ROOT
}
"
)
add_definitions
(
-DFTL_CACHE_ROOT=
${
FTL_CACHE_ROOT
}
)
add_definitions
(
"
-DFTL_CACHE_ROOT=
${
FTL_CACHE_ROOT
}
"
)
add_definitions
(
-DFTL_DATA_ROOT=
${
FTL_DATA_ROOT
}
)
add_definitions
(
"
-DFTL_DATA_ROOT=
${
FTL_DATA_ROOT
}
"
)
set
(
CMAKE_CXX_FLAGS
"-std=c++17 -Wall"
)
set
(
CMAKE_CXX_FLAGS
"-std=c++17 -Wall"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-D_DEBUG -pg -Wall"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-D_DEBUG -pg -Wall"
)
...
@@ -83,7 +83,6 @@ set(CVNODESRC
...
@@ -83,7 +83,6 @@ set(CVNODESRC
if
(
LIBSGM_FOUND
)
if
(
LIBSGM_FOUND
)
list
(
APPEND CVNODESRC
"src/algorithms/fixstars_sgm.cpp"
)
list
(
APPEND CVNODESRC
"src/algorithms/fixstars_sgm.cpp"
)
message
(
"Cuda libraries at
${
CUDA_LIBRARIES
}
"
)
endif
(
LIBSGM_FOUND
)
endif
(
LIBSGM_FOUND
)
if
(
CUDA_FOUND
)
if
(
CUDA_FOUND
)
...
...
This diff is collapsed.
Click to expand it.
cv-node/src/algorithms/rtcensus.cu
+
4
−
0
View file @
5d81e76b
...
@@ -113,6 +113,7 @@ __global__ void disp_kernel(float *disp_l, float *disp_r, size_t width, size_t h
...
@@ -113,6 +113,7 @@ __global__ void disp_kernel(float *disp_l, float *disp_r, size_t width, size_t h
int
dix1
=
0
;
int
dix1
=
0
;
int
dix2
=
0
;
int
dix2
=
0
;
// TODO Use prediction textures to narrow range
for
(
size_t
d
=
0
;
d
<
ds
;
d
++
)
{
for
(
size_t
d
=
0
;
d
<
ds
;
d
++
)
{
uint16_t
hamming1
=
0
;
uint16_t
hamming1
=
0
;
uint16_t
hamming2
=
0
;
uint16_t
hamming2
=
0
;
...
@@ -159,6 +160,7 @@ __global__ void disp_kernel(float *disp_l, float *disp_r, size_t width, size_t h
...
@@ -159,6 +160,7 @@ __global__ void disp_kernel(float *disp_l, float *disp_r, size_t width, size_t h
//float d1 = (dix1 == 0 || dix1 == ds-1) ? (float)dix1 : fit_parabola(dix1, min_disp1, min_before1, min_after1);
//float d1 = (dix1 == 0 || dix1 == ds-1) ? (float)dix1 : fit_parabola(dix1, min_disp1, min_before1, min_after1);
//float d2 = (dix2 == 0 || dix2 == ds-1) ? (float)dix2 : fit_parabola(dix2, min_disp2, min_before2, min_after2);
//float d2 = (dix2 == 0 || dix2 == ds-1) ? (float)dix2 : fit_parabola(dix2, min_disp2, min_before2, min_after2);
// TODO Allow for discontinuities with threshold
float
d1
=
fit_parabola
(
dix1
,
min_disp1
,
min_before1
,
min_after1
);
float
d1
=
fit_parabola
(
dix1
,
min_disp1
,
min_before1
,
min_after1
);
float
d2
=
fit_parabola
(
dix2
,
min_disp2
,
min_before2
,
min_after2
);
float
d2
=
fit_parabola
(
dix2
,
min_disp2
,
min_before2
,
min_after2
);
...
@@ -187,6 +189,8 @@ __global__ void consistency_kernel(float *d_sub_l, float *d_sub_r, PtrStepSz<flo
...
@@ -187,6 +189,8 @@ __global__ void consistency_kernel(float *d_sub_l, float *d_sub_r, PtrStepSz<flo
auto
b
=
d_sub_r
[
v
*
w
+
u
-
a
];
auto
b
=
d_sub_r
[
v
*
w
+
u
-
a
];
// TODO, if rejected, use semantic info to borrow neighbour
if
(
abs
(
a
-
b
)
<=
1.0
)
disp
(
v
,
u
)
=
abs
((
a
+
b
)
/
2
);
if
(
abs
(
a
-
b
)
<=
1.0
)
disp
(
v
,
u
)
=
abs
((
a
+
b
)
/
2
);
else
disp
(
v
,
u
)
=
0.0
f
;
else
disp
(
v
,
u
)
=
0.0
f
;
//}
//}
...
...
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