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
7458dfc0
Commit
7458dfc0
authored
Mar 02, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3765 from jet47:gpu-hog-fix
parents
bed8cb42
21bbed7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
hog.cpp
modules/gpu/src/hog.cpp
+3
-3
No files found.
modules/gpu/src/hog.cpp
View file @
7458dfc0
...
...
@@ -127,9 +127,6 @@ cv::gpu::HOGDescriptor::HOGDescriptor(Size win_size_, Size block_size_, Size blo
Size
cells_per_block
=
Size
(
block_size
.
width
/
cell_size
.
width
,
block_size
.
height
/
cell_size
.
height
);
CV_Assert
(
cells_per_block
==
Size
(
2
,
2
));
cv
::
Size
blocks_per_win
=
numPartsWithin
(
win_size
,
block_size
,
block_stride
);
hog
::
set_up_constants
(
nbins
,
block_stride
.
width
,
block_stride
.
height
,
blocks_per_win
.
width
,
blocks_per_win
.
height
);
}
size_t
cv
::
gpu
::
HOGDescriptor
::
getDescriptorSize
()
const
...
...
@@ -221,6 +218,9 @@ void cv::gpu::HOGDescriptor::computeGradient(const GpuMat& img, GpuMat& _grad, G
void
cv
::
gpu
::
HOGDescriptor
::
computeBlockHistograms
(
const
GpuMat
&
img
)
{
cv
::
Size
blocks_per_win
=
numPartsWithin
(
win_size
,
block_size
,
block_stride
);
hog
::
set_up_constants
(
nbins
,
block_stride
.
width
,
block_stride
.
height
,
blocks_per_win
.
width
,
blocks_per_win
.
height
);
computeGradient
(
img
,
grad
,
qangle
);
size_t
block_hist_size
=
getBlockHistogramSize
();
...
...
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