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
2afb02fc
Commit
2afb02fc
authored
Nov 27, 2015
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix BORDER_WRAP processing on Maxwell generation
parent
7ddc2cc0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
border_interpolate.hpp
...les/core/include/opencv2/core/cuda/border_interpolate.hpp
+4
-4
extrapolation.hpp
modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp
+2
-2
No files found.
modules/core/include/opencv2/core/cuda/border_interpolate.hpp
View file @
2afb02fc
...
...
@@ -632,12 +632,12 @@ namespace cv { namespace cuda { namespace device
__device__
__forceinline__
int
idx_row_low
(
int
y
)
const
{
return
(
y
>=
0
)
*
y
+
(
y
<
0
)
*
(
y
-
((
y
-
height
+
1
)
/
height
)
*
height
);
return
(
y
>=
0
)
?
y
:
(
y
-
((
y
-
height
+
1
)
/
height
)
*
height
);
}
__device__
__forceinline__
int
idx_row_high
(
int
y
)
const
{
return
(
y
<
height
)
*
y
+
(
y
>=
height
)
*
(
y
%
height
);
return
(
y
<
height
)
?
y
:
(
y
%
height
);
}
__device__
__forceinline__
int
idx_row
(
int
y
)
const
...
...
@@ -647,12 +647,12 @@ namespace cv { namespace cuda { namespace device
__device__
__forceinline__
int
idx_col_low
(
int
x
)
const
{
return
(
x
>=
0
)
*
x
+
(
x
<
0
)
*
(
x
-
((
x
-
width
+
1
)
/
width
)
*
width
);
return
(
x
>=
0
)
?
x
:
(
x
-
((
x
-
width
+
1
)
/
width
)
*
width
);
}
__device__
__forceinline__
int
idx_col_high
(
int
x
)
const
{
return
(
x
<
width
)
*
x
+
(
x
>=
width
)
*
(
x
%
width
);
return
(
x
<
width
)
?
x
:
(
x
%
width
);
}
__device__
__forceinline__
int
idx_col
(
int
x
)
const
...
...
modules/cudev/include/opencv2/cudev/ptr2d/extrapolation.hpp
View file @
2afb02fc
...
...
@@ -198,12 +198,12 @@ struct BrdWrap
{
__device__
__forceinline__
static
int
idx_low
(
int
i
,
int
len
)
{
return
(
i
>=
0
)
*
i
+
(
i
<
0
)
*
(
i
-
((
i
-
len
+
1
)
/
len
)
*
len
);
return
(
i
>=
0
)
?
i
:
(
i
-
((
i
-
len
+
1
)
/
len
)
*
len
);
}
__device__
__forceinline__
static
int
idx_high
(
int
i
,
int
len
)
{
return
(
i
<
len
)
*
i
+
(
i
>=
len
)
*
(
i
%
len
);
return
(
i
<
len
)
?
i
:
(
i
%
len
);
}
};
...
...
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