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
995154d1
Commit
995154d1
authored
Feb 21, 2013
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix binary compatibility of gpu module
parent
eda2a76e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp
+7
-5
imgproc.cpp
modules/gpu/src/imgproc.cpp
+3
-0
pyrlk.cpp
modules/gpu/src/pyrlk.cpp
+7
-5
No files found.
modules/gpu/include/opencv2/gpu/gpu.hpp
View file @
995154d1
...
...
@@ -815,6 +815,10 @@ struct CV_EXPORTS CannyBuf
GpuMat
st1
,
st2
;
GpuMat
unused
;
Ptr
<
FilterEngine_GPU
>
filterDX
,
filterDY
;
CannyBuf
()
{}
explicit
CannyBuf
(
const
Size
&
image_size
,
int
apperture_size
=
3
)
{
create
(
image_size
,
apperture_size
);}
CannyBuf
(
const
GpuMat
&
dx_
,
const
GpuMat
&
dy_
);
};
CV_EXPORTS
void
Canny
(
const
GpuMat
&
image
,
GpuMat
&
edges
,
double
low_thresh
,
double
high_thresh
,
int
apperture_size
=
3
,
bool
L2gradient
=
false
);
...
...
@@ -1879,11 +1883,9 @@ private:
vector
<
GpuMat
>
prevPyr_
;
vector
<
GpuMat
>
nextPyr_
;
GpuMat
vPyr_
[
2
];
vector
<
GpuMat
>
unused1
;
vector
<
GpuMat
>
unused2
;
bool
unused3
;
GpuMat
buf_
;
vector
<
GpuMat
>
buf_
;
vector
<
GpuMat
>
unused
;
bool
isDeviceArch11_
;
};
...
...
modules/gpu/src/imgproc.cpp
View file @
995154d1
...
...
@@ -45,6 +45,9 @@
using
namespace
cv
;
using
namespace
cv
::
gpu
;
/*stub for deprecated constructor*/
cv
::
gpu
::
CannyBuf
::
CannyBuf
(
const
GpuMat
&
,
const
GpuMat
&
)
{
}
#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)
void
cv
::
gpu
::
meanShiftFiltering
(
const
GpuMat
&
,
GpuMat
&
,
int
,
int
,
TermCriteria
,
Stream
&
)
{
throw_nogpu
();
}
...
...
modules/gpu/src/pyrlk.cpp
View file @
995154d1
...
...
@@ -147,11 +147,13 @@ void cv::gpu::PyrLKOpticalFlow::sparse(const GpuMat& prevImg, const GpuMat& next
}
else
{
cvtColor
(
prevImg
,
buf_
,
COLOR_BGR2BGRA
);
buf_
.
convertTo
(
prevPyr_
[
0
],
CV_32F
);
buf_
.
resize
(
1
);
cvtColor
(
nextImg
,
buf_
,
COLOR_BGR2BGRA
);
buf_
.
convertTo
(
nextPyr_
[
0
],
CV_32F
);
cvtColor
(
prevImg
,
buf_
[
0
],
COLOR_BGR2BGRA
);
buf_
[
0
].
convertTo
(
prevPyr_
[
0
],
CV_32F
);
cvtColor
(
nextImg
,
buf_
[
0
],
COLOR_BGR2BGRA
);
buf_
[
0
].
convertTo
(
nextPyr_
[
0
],
CV_32F
);
}
for
(
int
level
=
1
;
level
<=
maxLevel
;
++
level
)
...
...
@@ -237,7 +239,7 @@ void cv::gpu::PyrLKOpticalFlow::releaseMemory()
prevPyr_
.
clear
();
nextPyr_
.
clear
();
buf_
.
release
();
buf_
.
clear
();
uPyr_
[
0
].
release
();
vPyr_
[
0
].
release
();
...
...
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