Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
bf699c38
Commit
bf699c38
authored
Nov 03, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #358 from DirtyMaster:patch-1
parents
9011368a
9382f0ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
structured_edge_detection.cpp
modules/ximgproc/src/structured_edge_detection.cpp
+6
-1
No files found.
modules/ximgproc/src/structured_edge_detection.cpp
View file @
bf699c38
...
@@ -549,7 +549,9 @@ protected:
...
@@ -549,7 +549,9 @@ protected:
offsetY
[
n
]
=
x2
*
features
.
cols
*
nchannels
+
y2
*
nchannels
+
z
;
offsetY
[
n
]
=
x2
*
features
.
cols
*
nchannels
+
y2
*
nchannels
+
z
;
}
}
// lookup tables for mapping linear index to offset pairs
// lookup tables for mapping linear index to offset pairs
#ifdef _OPENMP
#pragma omp parallel for
#endif
for
(
int
i
=
0
;
i
<
height
;
++
i
)
for
(
int
i
=
0
;
i
<
height
;
++
i
)
{
{
float
*
regFeaturesPtr
=
regFeatures
.
ptr
<
float
>
(
i
*
stride
/
shrink
);
float
*
regFeaturesPtr
=
regFeatures
.
ptr
<
float
>
(
i
*
stride
/
shrink
);
...
@@ -599,6 +601,9 @@ protected:
...
@@ -599,6 +601,9 @@ protected:
dstM
.
setTo
(
0
);
dstM
.
setTo
(
0
);
float
step
=
2.0
f
*
CV_SQR
(
stride
)
/
CV_SQR
(
ipSize
)
/
nTreesEval
;
float
step
=
2.0
f
*
CV_SQR
(
stride
)
/
CV_SQR
(
ipSize
)
/
nTreesEval
;
#ifdef _OPENMP
#pragma omp parallel for
#endif
for
(
int
i
=
0
;
i
<
height
;
++
i
)
for
(
int
i
=
0
;
i
<
height
;
++
i
)
{
{
int
*
pIndex
=
indexes
.
ptr
<
int
>
(
i
);
int
*
pIndex
=
indexes
.
ptr
<
int
>
(
i
);
...
...
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