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
9862a8ba
Commit
9862a8ba
authored
Sep 23, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix invalid String usage
parent
2de6ff57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
tldDetector.cpp
modules/tracking/src/tldDetector.cpp
+3
-3
live_demo.cpp
modules/ximgproc/samples/live_demo.cpp
+6
-6
No files found.
modules/tracking/src/tldDetector.cpp
View file @
9862a8ba
...
...
@@ -122,7 +122,7 @@ namespace cv
ocl
::
Kernel
k
;
ocl
::
ProgramSource
src
=
ocl
::
tracking
::
tldDetector_oclsrc
;
String
error
;
ocl
::
Program
prog
(
src
,
NULL
,
error
);
ocl
::
Program
prog
(
src
,
String
()
,
error
);
k
.
create
(
"NCC"
,
prog
);
if
(
k
.
empty
())
printf
(
"Kernel create failed!!!
\n
"
);
...
...
@@ -198,7 +198,7 @@ namespace cv
ocl
::
Kernel
k
;
ocl
::
ProgramSource
src
=
ocl
::
tracking
::
tldDetector_oclsrc
;
String
error
;
ocl
::
Program
prog
(
src
,
NULL
,
error
);
ocl
::
Program
prog
(
src
,
String
()
,
error
);
k
.
create
(
"batchNCC"
,
prog
);
if
(
k
.
empty
())
printf
(
"Kernel create failed!!!
\n
"
);
...
...
@@ -355,7 +355,7 @@ namespace cv
ocl
::
Kernel
k
;
ocl
::
ProgramSource
src
=
ocl
::
tracking
::
tldDetector_oclsrc
;
String
error
;
ocl
::
Program
prog
(
src
,
NULL
,
error
);
ocl
::
Program
prog
(
src
,
String
()
,
error
);
k
.
create
(
"NCC"
,
prog
);
if
(
k
.
empty
())
printf
(
"Kernel create failed!!!
\n
"
);
...
...
modules/ximgproc/samples/live_demo.cpp
View file @
9862a8ba
...
...
@@ -189,7 +189,7 @@ int main()
//Thread trackbar
cv
::
setNumThreads
(
g_numberOfCPUs
);
//speedup filtering
createTrackbar
(
"Threads"
,
NULL
,
&
g_numberOfCPUs
,
cv
::
getNumberOfCPUs
(),
changeNumberOfCpuCallback
);
createTrackbar
(
"Threads"
,
String
()
,
&
g_numberOfCPUs
,
cv
::
getNumberOfCPUs
(),
changeNumberOfCpuCallback
);
//Buttons to choose different modes
createButton
(
"Mode Details Enhancement"
,
changeModeCallback
,
(
void
*
)
filterDetailEnhancement
,
QT_RADIOBOX
,
true
);
...
...
@@ -199,15 +199,15 @@ int main()
//sliders for Details Enhancement mode
g_filterOp
=
filterDetailEnhancement
;
//set Details Enhancement as default filter
createTrackbar
(
"Detail contrast"
,
NULL
,
&
g_contrastBase
,
200
);
createTrackbar
(
"Detail level"
,
NULL
,
&
g_detailsLevel
,
200
);
createTrackbar
(
"Detail contrast"
,
String
()
,
&
g_contrastBase
,
200
);
createTrackbar
(
"Detail level"
,
String
()
,
&
g_detailsLevel
,
200
);
//sliders for Stylizing mode
createTrackbar
(
"Style gamma"
,
NULL
,
&
g_edgesGamma
,
300
);
createTrackbar
(
"Style gamma"
,
String
()
,
&
g_edgesGamma
,
300
);
//sliders for every mode
createTrackbar
(
"Sigma Spatial"
,
NULL
,
&
g_sigmaSpatial
,
200
);
createTrackbar
(
"Sigma Color"
,
NULL
,
&
g_sigmaColor
,
200
);
createTrackbar
(
"Sigma Spatial"
,
String
()
,
&
g_sigmaSpatial
,
200
);
createTrackbar
(
"Sigma Color"
,
String
()
,
&
g_sigmaColor
,
200
);
Mat
rawFrame
,
outputFrame
;
Mat
srcFrame
,
processedFrame
;
...
...
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