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
4136855b
Commit
4136855b
authored
Nov 11, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tegra-optimized Canny
parent
330357f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
perf_canny.cpp
modules/imgproc/perf/perf_canny.cpp
+2
-2
canny.cpp
modules/imgproc/src/canny.cpp
+5
-0
concatlogs.py
modules/ts/misc/concatlogs.py
+2
-2
No files found.
modules/imgproc/perf/perf_canny.cpp
View file @
4136855b
...
...
@@ -11,10 +11,10 @@ typedef perf::TestBaseWithParam<Img_Aperture_L2_thresholds_t> Img_Aperture_L2_th
PERF_TEST_P
(
Img_Aperture_L2_thresholds
,
canny
,
testing
::
Combine
(
testing
::
Values
(
"cv/shared/lena.jpg"
,
"stitching/b1.jpg"
),
testing
::
Values
(
"cv/shared/lena.jpg"
,
"stitching/b1.jpg"
,
"cv/detectors_descriptors_evaluation/images_datasets/leuven/img1.png"
),
testing
::
Values
(
3
,
5
),
testing
::
Bool
(),
testing
::
Values
(
make_tuple
(
50.0
,
100.0
),
make_tuple
(
0.0
,
50.0
)
)
testing
::
Values
(
make_tuple
(
50.0
,
100.0
),
make_tuple
(
0.0
,
50.0
)
,
make_tuple
(
100.0
,
120.0
)
)
)
)
{
...
...
modules/imgproc/src/canny.cpp
View file @
4136855b
...
...
@@ -45,6 +45,11 @@ CV_IMPL void cvCanny( const void* srcarr, void* dstarr,
double
low_thresh
,
double
high_thresh
,
int
aperture_size
)
{
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
canny
(
cv
::
cvarrToMat
(
srcarr
),
cv
::
cvarrToMat
(
dstarr
),
low_thresh
,
high_thresh
,
aperture_size
&
~
CV_CANNY_L2_GRADIENT
,
(
aperture_size
&
CV_CANNY_L2_GRADIENT
)
==
CV_CANNY_L2_GRADIENT
))
return
;
#endif
cv
::
Ptr
<
CvMat
>
dx
,
dy
;
cv
::
AutoBuffer
<
char
>
buffer
;
std
::
vector
<
uchar
*>
stack
;
...
...
modules/ts/misc/concatlogs.py
View file @
4136855b
from
optparse
import
OptionParser
import
glob
,
sys
,
os
import
glob
,
sys
,
os
,
re
if
__name__
==
"__main__"
:
parser
=
OptionParser
()
...
...
@@ -29,7 +29,7 @@ if __name__ == "__main__":
continue
idx1
=
text
.
find
(
"<tbody>"
)
+
len
(
"<tbody>"
)
idx2
=
html
.
rfind
(
"</tbody>"
)
html
=
html
[:
idx2
]
+
text
[
idx1
:]
html
=
html
[:
idx2
]
+
re
.
sub
(
r"[ \t\n\r]+"
,
" "
,
text
[
idx1
:])
except
:
pass
...
...
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