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
b416e871
Commit
b416e871
authored
Jan 15, 2015
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move labeling routines from cuda to cudalegacy
parent
3f1fb281
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
28 deletions
+29
-28
cuda.hpp
modules/cuda/include/opencv2/cuda.hpp
+0
-23
cudalegacy.hpp
modules/cudalegacy/include/opencv2/cudalegacy.hpp
+24
-0
perf_labeling.cpp
modules/cudalegacy/perf/perf_labeling.cpp
+0
-0
ccomponetns.cu
modules/cudalegacy/src/cuda/ccomponetns.cu
+0
-0
graphcuts.cpp
modules/cudalegacy/src/graphcuts.cpp
+0
-0
test_labeling.cpp
modules/cudalegacy/test/test_labeling.cpp
+0
-0
CMakeLists.txt
modules/stitching/CMakeLists.txt
+1
-1
seam_finders.hpp
...itching/include/opencv2/stitching/detail/seam_finders.hpp
+1
-1
precomp.hpp
modules/stitching/src/precomp.hpp
+2
-2
seam_finders.cpp
modules/stitching/src/seam_finders.cpp
+1
-1
No files found.
modules/cuda/include/opencv2/cuda.hpp
View file @
b416e871
...
...
@@ -58,29 +58,6 @@
namespace
cv
{
namespace
cuda
{
//////////////////////////// Labeling ////////////////////////////
//! @addtogroup cuda
//! @{
//!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
());
//! @}
//////////////////////////// Calib3d ////////////////////////////
//! @addtogroup cuda_calib3d
...
...
modules/cudalegacy/include/opencv2/cudalegacy.hpp
View file @
b416e871
...
...
@@ -63,6 +63,10 @@ namespace cv { namespace cuda {
//! @addtogroup cudalegacy
//! @{
//
// ImagePyramid
//
class
CV_EXPORTS
ImagePyramid
:
public
Algorithm
{
public
:
...
...
@@ -227,6 +231,26 @@ CV_EXPORTS void interpolateFrames(const GpuMat& frame0, const GpuMat& frame1,
CV_EXPORTS
void
createOpticalFlowNeedleMap
(
const
GpuMat
&
u
,
const
GpuMat
&
v
,
GpuMat
&
vertex
,
GpuMat
&
colors
);
//
// Labeling
//
//!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
());
//! @}
}}
...
...
modules/cuda/perf/perf_labeling.cpp
→
modules/cuda
legacy
/perf/perf_labeling.cpp
View file @
b416e871
File moved
modules/cuda/src/cuda/ccomponetns.cu
→
modules/cuda
legacy
/src/cuda/ccomponetns.cu
View file @
b416e871
File moved
modules/cuda/src/graphcuts.cpp
→
modules/cuda
legacy
/src/graphcuts.cpp
View file @
b416e871
File moved
modules/cuda/test/test_labeling.cpp
→
modules/cuda
legacy
/test/test_labeling.cpp
View file @
b416e871
File moved
modules/stitching/CMakeLists.txt
View file @
b416e871
...
...
@@ -5,4 +5,4 @@ if(HAVE_CUDA)
endif
()
ocv_define_module
(
stitching opencv_imgproc opencv_features2d opencv_calib3d opencv_objdetect
OPTIONAL opencv_cuda opencv_cudaarithm opencv_cudafilters opencv_cudafeatures2d opencv_xfeatures2d
)
OPTIONAL opencv_cuda opencv_cudaarithm opencv_cudafilters opencv_cudafeatures2d opencv_
cudalegacy opencv_
xfeatures2d
)
modules/stitching/include/opencv2/stitching/detail/seam_finders.hpp
View file @
b416e871
...
...
@@ -249,7 +249,7 @@ private:
};
#ifdef HAVE_OPENCV_CUDA
#ifdef HAVE_OPENCV_CUDA
LEGACY
class
CV_EXPORTS
GraphCutSeamFinderGpu
:
public
GraphCutSeamFinderBase
,
public
PairwiseSeamFinder
{
public
:
...
...
modules/stitching/src/precomp.hpp
View file @
b416e871
...
...
@@ -83,8 +83,8 @@
# include "opencv2/cudafeatures2d.hpp"
#endif
#ifdef HAVE_OPENCV_CUDA
# include "opencv2/cuda.hpp"
#ifdef HAVE_OPENCV_CUDA
LEGACY
# include "opencv2/cuda
legacy
.hpp"
#endif
#ifdef HAVE_OPENCV_XFEATURES2D
...
...
modules/stitching/src/seam_finders.cpp
View file @
b416e871
...
...
@@ -1321,7 +1321,7 @@ void GraphCutSeamFinder::find(const std::vector<UMat> &src, const std::vector<Po
}
#ifdef HAVE_OPENCV_CUDA
#ifdef HAVE_OPENCV_CUDA
LEGACY
void
GraphCutSeamFinderGpu
::
find
(
const
std
::
vector
<
UMat
>
&
src
,
const
std
::
vector
<
Point
>
&
corners
,
std
::
vector
<
UMat
>
&
masks
)
{
...
...
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