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
cad95189
Commit
cad95189
authored
Apr 17, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved image labeling to gpu module
parent
e72ba73e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
gpu.hpp
modules/gpu/include/opencv2/gpu.hpp
+16
-0
perf_labeling.cpp
modules/gpu/perf/perf_labeling.cpp
+0
-0
ccomponetns.cu
modules/gpu/src/cuda/ccomponetns.cu
+0
-0
graphcuts.cpp
modules/gpu/src/graphcuts.cpp
+0
-0
test_labeling.cpp
modules/gpu/test/test_labeling.cpp
+0
-0
gpuimgproc.hpp
modules/gpuimgproc/include/opencv2/gpuimgproc.hpp
+0
-16
No files found.
modules/gpu/include/opencv2/gpu.hpp
View file @
cad95189
...
...
@@ -55,6 +55,22 @@
namespace
cv
{
namespace
gpu
{
//!performs labeling via graph cuts of a 2D regular 4-connected graph.
CV_EXPORTS
void
graphcut
(
GpuMat
&
terminals
,
GpuMat
&
leftTransp
,
GpuMat
&
rightTransp
,
GpuMat
&
top
,
GpuMat
&
bottom
,
GpuMat
&
labels
,
GpuMat
&
buf
,
Stream
&
stream
=
Stream
::
Null
());
//!performs labeling via graph cuts of a 2D regular 8-connected graph.
CV_EXPORTS
void
graphcut
(
GpuMat
&
terminals
,
GpuMat
&
leftTransp
,
GpuMat
&
rightTransp
,
GpuMat
&
top
,
GpuMat
&
topLeft
,
GpuMat
&
topRight
,
GpuMat
&
bottom
,
GpuMat
&
bottomLeft
,
GpuMat
&
bottomRight
,
GpuMat
&
labels
,
GpuMat
&
buf
,
Stream
&
stream
=
Stream
::
Null
());
//! compute mask for Generalized Flood fill componetns labeling.
CV_EXPORTS
void
connectivityMask
(
const
GpuMat
&
image
,
GpuMat
&
mask
,
const
cv
::
Scalar
&
lo
,
const
cv
::
Scalar
&
hi
,
Stream
&
stream
=
Stream
::
Null
());
//! performs connected componnents labeling.
CV_EXPORTS
void
labelComponents
(
const
GpuMat
&
mask
,
GpuMat
&
components
,
int
flags
=
0
,
Stream
&
stream
=
Stream
::
Null
());
//! removes points (CV_32FC2, single row matrix) with zero mask value
CV_EXPORTS
void
compactPoints
(
GpuMat
&
points0
,
GpuMat
&
points1
,
const
GpuMat
&
mask
);
...
...
modules/gpu
imgproc
/perf/perf_labeling.cpp
→
modules/gpu/perf/perf_labeling.cpp
View file @
cad95189
File moved
modules/gpu
imgproc
/src/cuda/ccomponetns.cu
→
modules/gpu/src/cuda/ccomponetns.cu
View file @
cad95189
File moved
modules/gpu
imgproc
/src/graphcuts.cpp
→
modules/gpu/src/graphcuts.cpp
View file @
cad95189
File moved
modules/gpu
imgproc
/test/test_labeling.cpp
→
modules/gpu/test/test_labeling.cpp
View file @
cad95189
File moved
modules/gpuimgproc/include/opencv2/gpuimgproc.hpp
View file @
cad95189
...
...
@@ -223,22 +223,6 @@ private:
CannyBuf
cannyBuf_
;
};
//!performs labeling via graph cuts of a 2D regular 4-connected graph.
CV_EXPORTS
void
graphcut
(
GpuMat
&
terminals
,
GpuMat
&
leftTransp
,
GpuMat
&
rightTransp
,
GpuMat
&
top
,
GpuMat
&
bottom
,
GpuMat
&
labels
,
GpuMat
&
buf
,
Stream
&
stream
=
Stream
::
Null
());
//!performs labeling via graph cuts of a 2D regular 8-connected graph.
CV_EXPORTS
void
graphcut
(
GpuMat
&
terminals
,
GpuMat
&
leftTransp
,
GpuMat
&
rightTransp
,
GpuMat
&
top
,
GpuMat
&
topLeft
,
GpuMat
&
topRight
,
GpuMat
&
bottom
,
GpuMat
&
bottomLeft
,
GpuMat
&
bottomRight
,
GpuMat
&
labels
,
GpuMat
&
buf
,
Stream
&
stream
=
Stream
::
Null
());
//! compute mask for Generalized Flood fill componetns labeling.
CV_EXPORTS
void
connectivityMask
(
const
GpuMat
&
image
,
GpuMat
&
mask
,
const
cv
::
Scalar
&
lo
,
const
cv
::
Scalar
&
hi
,
Stream
&
stream
=
Stream
::
Null
());
//! performs connected componnents labeling.
CV_EXPORTS
void
labelComponents
(
const
GpuMat
&
mask
,
GpuMat
&
components
,
int
flags
=
0
,
Stream
&
stream
=
Stream
::
Null
());
//! Compute levels with even distribution. levels will have 1 row and nLevels cols and CV_32SC1 type.
CV_EXPORTS
void
evenLevels
(
GpuMat
&
levels
,
int
nLevels
,
int
lowerLevel
,
int
upperLevel
);
//! Calculates histogram with evenly distributed bins for signle channel source.
...
...
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