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
2937c4ec
Commit
2937c4ec
authored
Mar 31, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1597 from LaurentBerger:edgeboxes
parents
768deade
79b60e93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
edgeboxes_demo.cpp
modules/ximgproc/samples/edgeboxes_demo.cpp
+3
-1
edgeboxes.cpp
modules/ximgproc/src/edgeboxes.cpp
+1
-2
No files found.
modules/ximgproc/samples/edgeboxes_demo.cpp
View file @
2937c4ec
...
...
@@ -87,7 +87,9 @@ int main(int argc, char **argv)
rectangle
(
im
,
p1
,
p2
,
color
,
1
);
}
imshow
(
"im"
,
im
);
imshow
(
"Edge"
,
edge_im
);
imshow
(
"Nms"
,
edge_nms
);
imshow
(
"Image & boxes"
,
im
);
waitKey
(
0
);
return
0
;
...
...
modules/ximgproc/src/edgeboxes.cpp
View file @
2937c4ec
...
...
@@ -566,10 +566,9 @@ void EdgeBoxesImpl::prepDataStructs(Mat &edgeMap)
// initialize scoreBox() data structures
int
n
=
_segCnt
+
1
;
_sWts
=
Mat
::
zeros
(
n
,
1
,
DataType
<
float
>::
type
);
_sDone
=
Mat
::
zeros
(
n
,
1
,
DataType
<
int
>::
type
);
_sDone
=
Mat
(
n
,
1
,
DataType
<
int
>::
type
,
Scalar
(
-
1
)
);
_sMap
=
Mat
::
zeros
(
n
,
1
,
DataType
<
int
>::
type
);
_sIds
=
Mat
::
zeros
(
n
,
1
,
DataType
<
int
>::
type
);
for
(
i
=
0
;
i
<
n
;
i
++
)
_sDone
.
at
<
int
>
(
0
,
i
)
=
-
1
;
_sId
=
0
;
}
...
...
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