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
863d61e9
Commit
863d61e9
authored
Nov 08, 2010
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gpu module compilation under linux
parent
4cdcf371
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
arithm.cpp
modules/gpu/src/arithm.cpp
+0
-0
graphcuts.cpp
modules/gpu/src/graphcuts.cpp
+9
-3
imgproc_gpu.cpp
modules/gpu/src/imgproc_gpu.cpp
+0
-0
matrix_operations.cpp
modules/gpu/src/matrix_operations.cpp
+0
-0
No files found.
modules/gpu/src/arithm.cpp
View file @
863d61e9
This diff is collapsed.
Click to expand it.
modules/gpu/src/graphcuts.cpp
View file @
863d61e9
...
@@ -48,15 +48,18 @@ void cv::gpu::graphcut(GpuMat&, GpuMat&, GpuMat&, GpuMat&, GpuMat&, GpuMat&, Gpu
...
@@ -48,15 +48,18 @@ void cv::gpu::graphcut(GpuMat&, GpuMat&, GpuMat&, GpuMat&, GpuMat&, GpuMat&, Gpu
#else
/* !defined (HAVE_CUDA) */
#else
/* !defined (HAVE_CUDA) */
#define NPP_VERSION (10 * NPP_VERSION_MAJOR + NPP_VERSION_MINOR)
void
cv
::
gpu
::
graphcut
(
GpuMat
&
terminals
,
GpuMat
&
leftTransp
,
GpuMat
&
rightTransp
,
GpuMat
&
top
,
GpuMat
&
bottom
,
GpuMat
&
labels
,
GpuMat
&
buf
)
void
cv
::
gpu
::
graphcut
(
GpuMat
&
terminals
,
GpuMat
&
leftTransp
,
GpuMat
&
rightTransp
,
GpuMat
&
top
,
GpuMat
&
bottom
,
GpuMat
&
labels
,
GpuMat
&
buf
)
{
{
#if NPP_VERSION >= 32
CV_Assert
(
leftTransp
.
type
()
==
CV_32S
&&
rightTransp
.
type
()
==
CV_32S
);
CV_Assert
(
leftTransp
.
type
()
==
CV_32S
&&
rightTransp
.
type
()
==
CV_32S
);
CV_Assert
(
terminals
.
type
()
==
CV_32S
&&
bottom
.
type
()
==
CV_32S
&&
top
.
type
()
==
CV_32S
);
CV_Assert
(
terminals
.
type
()
==
CV_32S
&&
bottom
.
type
()
==
CV_32S
&&
top
.
type
()
==
CV_32S
);
CV_Assert
(
terminals
.
size
()
==
leftTransp
.
size
());
CV_Assert
(
terminals
.
size
()
==
leftTransp
.
size
());
CV_Assert
(
terminals
.
size
()
==
rightTransp
.
size
());
CV_Assert
(
terminals
.
size
()
==
rightTransp
.
size
());
CV_Assert
(
terminals
.
size
()
==
top
.
size
()
&&
terminals
.
size
()
==
bottom
.
size
());
CV_Assert
(
terminals
.
size
()
==
top
.
size
()
&&
terminals
.
size
()
==
bottom
.
size
());
CV_Assert
(
top
.
step
==
bottom
.
step
&&
top
.
step
==
terminals
.
step
&&
rightTransp
.
step
==
leftTransp
.
step
);
CV_Assert
(
top
.
step
==
bottom
.
step
&&
top
.
step
==
terminals
.
step
&&
rightTransp
.
step
==
leftTransp
.
step
);
labels
.
create
(
terminals
.
size
(),
CV_8U
);
labels
.
create
(
terminals
.
size
(),
CV_8U
);
NppiSize
sznpp
;
NppiSize
sznpp
;
...
@@ -69,8 +72,11 @@ void cv::gpu::graphcut(GpuMat& terminals, GpuMat& leftTransp, GpuMat& rightTrans
...
@@ -69,8 +72,11 @@ void cv::gpu::graphcut(GpuMat& terminals, GpuMat& leftTransp, GpuMat& rightTrans
if
((
size_t
)
bufsz
>
buf
.
cols
*
buf
.
rows
*
buf
.
elemSize
())
if
((
size_t
)
bufsz
>
buf
.
cols
*
buf
.
rows
*
buf
.
elemSize
())
buf
.
create
(
1
,
bufsz
,
CV_8U
);
buf
.
create
(
1
,
bufsz
,
CV_8U
);
nppSafeCall
(
nppiGraphcut_32s8u
(
terminals
.
ptr
<
Npp32s
>
(),
leftTransp
.
ptr
<
Npp32s
>
(),
rightTransp
.
ptr
<
Npp32s
>
(),
top
.
ptr
<
Npp32s
>
(),
bottom
.
ptr
<
Npp32s
>
(),
nppSafeCall
(
nppiGraphcut_32s8u
(
terminals
.
ptr
<
Npp32s
>
(),
leftTransp
.
ptr
<
Npp32s
>
(),
rightTransp
.
ptr
<
Npp32s
>
(),
top
.
ptr
<
Npp32s
>
(),
bottom
.
ptr
<
Npp32s
>
(),
terminals
.
step
,
leftTransp
.
step
,
sznpp
,
labels
.
ptr
<
Npp8u
>
(),
labels
.
step
,
buf
.
ptr
<
Npp8u
>
())
);
terminals
.
step
,
leftTransp
.
step
,
sznpp
,
labels
.
ptr
<
Npp8u
>
(),
labels
.
step
,
buf
.
ptr
<
Npp8u
>
())
);
#else
CV_Assert
(
!
"This function doesn't supported"
);
#endif
}
}
...
...
modules/gpu/src/imgproc_gpu.cpp
View file @
863d61e9
This diff is collapsed.
Click to expand it.
modules/gpu/src/matrix_operations.cpp
View file @
863d61e9
This diff is collapsed.
Click to expand it.
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