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
9c96a811
Commit
9c96a811
authored
Mar 29, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1097 from arrybn:issue_1007
parents
31e96057
f3d751f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
padding_layer.cpp
modules/dnn/src/layers/padding_layer.cpp
+4
-4
No files found.
modules/dnn/src/layers/padding_layer.cpp
View file @
9c96a811
...
@@ -63,12 +63,12 @@ void PaddingLayer::forward(std::vector<Blob*> &inputs, std::vector<Blob> &output
...
@@ -63,12 +63,12 @@ void PaddingLayer::forward(std::vector<Blob*> &inputs, std::vector<Blob> &output
std
::
vector
<
Range
>
srcRanges
(
inShape
.
dims
(),
Range
::
all
()),
dstRanges
=
srcRanges
;
std
::
vector
<
Range
>
srcRanges
(
inShape
.
dims
(),
Range
::
all
()),
dstRanges
=
srcRanges
;
for
(
int
i
=
0
;
i
<
srcDstRanges
.
size
();
i
++
)
for
(
int
j
=
0
;
j
<
srcDstRanges
.
size
();
j
++
)
{
{
if
(
!
srcDstRanges
[
i
].
first
.
empty
())
if
(
!
srcDstRanges
[
j
].
first
.
empty
())
{
{
srcRanges
[
dim
]
=
srcDstRanges
[
i
].
first
;
srcRanges
[
dim
]
=
srcDstRanges
[
j
].
first
;
dstRanges
[
dim
]
=
srcDstRanges
[
i
].
second
;
dstRanges
[
dim
]
=
srcDstRanges
[
j
].
second
;
Mat
dst
=
outputs
[
i
].
matRef
()(
&
dstRanges
[
0
]);
Mat
dst
=
outputs
[
i
].
matRef
()(
&
dstRanges
[
0
]);
Mat
src
=
inputs
[
i
]
->
matRef
()(
&
srcRanges
[
0
]).
clone
();
Mat
src
=
inputs
[
i
]
->
matRef
()(
&
srcRanges
[
0
]).
clone
();
src
.
copyTo
(
dst
);
src
.
copyTo
(
dst
);
...
...
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