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
87bbccce
Commit
87bbccce
authored
Feb 14, 2012
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed orb bug commited by mistake
parent
84db4eb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
gpu.hpp
modules/gpu/include/opencv2/gpu/gpu.hpp
+1
-1
orb.cpp
modules/gpu/src/orb.cpp
+7
-7
No files found.
modules/gpu/include/opencv2/gpu/gpu.hpp
View file @
87bbccce
...
...
@@ -1664,7 +1664,7 @@ private:
GpuMat
pattern_
;
std
::
vector
<
GpuMat
>
imagePyr_
;
cv
::
Ptr
<
std
::
vector
<
GpuMat
>
>
maskPyr_
;
std
::
vector
<
GpuMat
>
maskPyr_
;
GpuMat
buf_
;
...
...
modules/gpu/src/orb.cpp
View file @
87bbccce
...
...
@@ -493,7 +493,7 @@ void cv::gpu::ORB_GPU::buildScalePyramids(const GpuMat& image, const GpuMat& mas
CV_Assert
(
mask
.
empty
()
||
(
mask
.
type
()
==
CV_8UC1
&&
mask
.
size
()
==
image
.
size
()));
imagePyr_
.
resize
(
params_
.
n_levels_
);
maskPyr_
->
resize
(
params_
.
n_levels_
);
maskPyr_
.
resize
(
params_
.
n_levels_
);
for
(
int
level
=
0
;
level
<
static_cast
<
int
>
(
params_
.
n_levels_
);
++
level
)
{
...
...
@@ -502,8 +502,8 @@ void cv::gpu::ORB_GPU::buildScalePyramids(const GpuMat& image, const GpuMat& mas
Size
sz
(
cvRound
(
image
.
cols
*
scale
),
cvRound
(
image
.
rows
*
scale
));
ensureSizeIsEnough
(
sz
,
image
.
type
(),
imagePyr_
[
level
]);
ensureSizeIsEnough
(
sz
,
CV_8UC1
,
(
*
maskPyr_
)
[
level
]);
(
*
maskPyr_
)
[
level
].
setTo
(
Scalar
::
all
(
255
));
ensureSizeIsEnough
(
sz
,
CV_8UC1
,
maskPyr_
[
level
]);
maskPyr_
[
level
].
setTo
(
Scalar
::
all
(
255
));
// Compute the resized image
if
(
level
!=
static_cast
<
int
>
(
params_
.
first_level_
))
...
...
@@ -528,7 +528,7 @@ void cv::gpu::ORB_GPU::buildScalePyramids(const GpuMat& image, const GpuMat& mas
image
.
copyTo
(
imagePyr_
[
level
]);
if
(
!
mask
.
empty
())
mask
.
copyTo
(
(
*
maskPyr_
)
[
level
]);
mask
.
copyTo
(
maskPyr_
[
level
]);
}
// Filter keypoints by image border
...
...
@@ -537,7 +537,7 @@ void cv::gpu::ORB_GPU::buildScalePyramids(const GpuMat& image, const GpuMat& mas
Rect
inner
(
params_
.
edge_threshold_
,
params_
.
edge_threshold_
,
sz
.
width
-
2
*
params_
.
edge_threshold_
,
sz
.
height
-
2
*
params_
.
edge_threshold_
);
buf_
(
inner
).
setTo
(
Scalar
::
all
(
255
));
bitwise_and
(
(
*
maskPyr_
)[
level
],
buf_
,
(
*
maskPyr_
)
[
level
]);
bitwise_and
(
maskPyr_
[
level
],
buf_
,
maskPyr_
[
level
]);
}
}
...
...
@@ -573,7 +573,7 @@ void cv::gpu::ORB_GPU::computeKeyPointsPyramid()
for
(
int
level
=
0
;
level
<
static_cast
<
int
>
(
params_
.
n_levels_
);
++
level
)
{
keyPointsCount_
[
level
]
=
fastDetector_
.
calcKeyPointsLocation
(
imagePyr_
[
level
],
(
*
maskPyr_
)
[
level
]);
keyPointsCount_
[
level
]
=
fastDetector_
.
calcKeyPointsLocation
(
imagePyr_
[
level
],
maskPyr_
[
level
]);
ensureSizeIsEnough
(
3
,
keyPointsCount_
[
level
],
CV_32FC1
,
keyPointsPyr_
[
level
]);
...
...
@@ -752,7 +752,7 @@ void cv::gpu::ORB_GPU::operator()(const GpuMat& image, const GpuMat& mask, std::
void
cv
::
gpu
::
ORB_GPU
::
release
()
{
imagePyr_
.
clear
();
maskPyr_
->
clear
();
maskPyr_
.
clear
();
buf_
.
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