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
815cd897
Commit
815cd897
authored
Jun 19, 2015
by
Seon-Wook Park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spatialGradient: Remove unnecessary index calculation
parent
b5c4355c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spatialgradient.cpp
modules/imgproc/src/spatialgradient.cpp
+2
-1
test_filter.cpp
modules/imgproc/test/test_filter.cpp
+0
-1
No files found.
modules/imgproc/src/spatialgradient.cpp
View file @
815cd897
...
...
@@ -220,7 +220,6 @@ void spatialGradient( InputArray _src, OutputArray _dx, OutputArray _dy, int ksi
for
(
i
=
1
;
i
<
H
-
1
;
i
++
)
{
// Load last row for 3x3 Sobel filter
idx
=
i
*
W
+
j
;
v_um
=
v_load
(
&
p_src
[
idx
+
W
-
1
]);
v_un
=
v_load
(
&
p_src
[
idx
+
W
]);
v_up
=
v_load
(
&
p_src
[
idx
+
W
+
1
]);
...
...
@@ -261,6 +260,8 @@ void spatialGradient( InputArray _src, OutputArray _dx, OutputArray _dy, int ksi
v_snn2
=
v_spn2
;
v_snp1
=
v_spp1
;
v_snp2
=
v_spp2
;
idx
+=
W
;
}
}
...
...
modules/imgproc/test/test_filter.cpp
View file @
815cd897
...
...
@@ -602,7 +602,6 @@ void CV_SpatialGradientTest::run_func()
test_mat
[
OUTPUT
][
1
]
=
dy
;
}
void
CV_SpatialGradientTest
::
prepare_to_validation
(
int
/*test_case_idx*/
)
{
int
dx
,
dy
;
...
...
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