Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
4a41107b
Commit
4a41107b
authored
Mar 31, 2012
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applied patch #1734
parent
124ceb96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
NCVBroxOpticalFlow.cu
modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu
+4
-4
No files found.
modules/gpu/src/nvidia/NCVBroxOpticalFlow.cu
View file @
4a41107b
...
@@ -551,10 +551,10 @@ template<int isBlack> __global__ void sor_pass(float *new_du,
...
@@ -551,10 +551,10 @@ template<int isBlack> __global__ void sor_pass(float *new_du,
return;
return;
const int pos = j * stride + i;
const int pos = j * stride + i;
const int pos_r =
pos + 1
;
const int pos_r =
i < width - 1 ? pos + 1 : pos
;
const int pos_u =
pos + stride
;
const int pos_u =
j < height - 1 ? pos + stride : pos
;
const int pos_d =
pos - stride
;
const int pos_d =
j > 0 ? pos - stride : pos
;
const int pos_l =
pos - 1
;
const int pos_l =
i > 0 ? pos - 1 : pos
;
//load smooth term
//load smooth term
float s_up, s_left, s_right, s_down;
float s_up, s_left, s_right, s_down;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment