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
9c4a38ae
Commit
9c4a38ae
authored
6 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Change filter window size to 11
parent
dc93a1a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cv-node/src/algorithms/rtcensus.cu
+3
-2
3 additions, 2 deletions
cv-node/src/algorithms/rtcensus.cu
with
3 additions
and
2 deletions
cv-node/src/algorithms/rtcensus.cu
+
3
−
2
View file @
9c4a38ae
...
@@ -282,7 +282,8 @@ __global__ void consistency_kernel(cudaTextureObject_t d_sub_l,
...
@@ -282,7 +282,8 @@ __global__ void consistency_kernel(cudaTextureObject_t d_sub_l,
}
}
#define FILTER_WINDOW_R 7
#define FILTER_WINDOW 11
#define FILTER_WINDOW_R 5
#define FILTER_SIM_THRESH 20
#define FILTER_SIM_THRESH 20
#define FILTER_DISP_THRESH 10.0f
#define FILTER_DISP_THRESH 10.0f
...
@@ -339,7 +340,7 @@ __global__ void filter_kernel(cudaTextureObject_t t, cudaTextureObject_t d,
...
@@ -339,7 +340,7 @@ __global__ void filter_kernel(cudaTextureObject_t t, cudaTextureObject_t d,
}
}
// Texture map filtering
// Texture map filtering
int
tm
=
(
neigh_sq
/
(
15
*
15
))
-
((
neigh_sum
*
neigh_sum
)
/
(
15
*
15
));
int
tm
=
(
neigh_sq
/
(
FILTER_WINDOW
*
FILTER_WINDOW
))
-
((
neigh_sum
*
neigh_sum
)
/
(
FILTER_WINDOW
*
FILTER_WINDOW
));
if
(
tm
>=
-
9000000
)
{
if
(
tm
>=
-
9000000
)
{
// ) {
// ) {
if
(
!
isnan
(
disp
)
&&
(
abs
(
ppixel
-
pixel
)
>
FILTER_SIM_THRESH
||
abs
(
pdisp
-
disp
)
<=
FILTER_DISP_THRESH
))
{
if
(
!
isnan
(
disp
)
&&
(
abs
(
ppixel
-
pixel
)
>
FILTER_SIM_THRESH
||
abs
(
pdisp
-
disp
)
<=
FILTER_DISP_THRESH
))
{
...
...
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