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
febd0f14
Commit
febd0f14
authored
Jun 26, 2015
by
Seon-Wook Park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spatialGradient: Don't dynamically alloc C array, use vector
parent
f92e2ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spatialgradient.cpp
modules/imgproc/src/spatialgradient.cpp
+3
-3
No files found.
modules/imgproc/src/spatialgradient.cpp
View file @
febd0f14
...
...
@@ -74,9 +74,9 @@ void spatialGradient( InputArray _src, OutputArray _dx, OutputArray _dy,
// Store pointers to rows of input/output data
// Padded by two rows for border handling
uchar
*
P_src
[
H
+
2
]
;
s
hort
*
P_dx
[
H
+
2
]
;
s
hort
*
P_dy
[
H
+
2
]
;
std
::
vector
<
uchar
*>
P_src
(
H
+
2
)
;
s
td
::
vector
<
short
*>
P_dx
(
H
+
2
)
;
s
td
::
vector
<
short
*>
P_dy
(
H
+
2
)
;
int
i_top
=
0
,
// Case for H == 1 && W == 1 && BORDER_REPLICATE
i_bottom
=
H
-
1
,
...
...
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