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
782ccc18
Commit
782ccc18
authored
Nov 28, 2011
by
Leonid Beynenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made changes in the stitching module to make correct logging on Android.
parent
5cbec286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
util.hpp
modules/stitching/include/opencv2/stitching/detail/util.hpp
+14
-1
No files found.
modules/stitching/include/opencv2/stitching/detail/util.hpp
View file @
782ccc18
...
...
@@ -44,14 +44,27 @@
#define __OPENCV_STITCHING_UTIL_HPP__
#include <list>
#include "cvconfig.h"
#include "opencv2/core/core.hpp"
#define ENABLE_LOG 1
// TODO remove LOG macros, add logging class
#if ENABLE_LOG
#if ANDROID
#include <iostream>
#define LOG(msg) { std::cout << msg; std::cout.flush(); }
#include <sstream>
#include <android/log.h>
#define LOG(msg) \
do
{
\
std
::
stringstream
_os
;
\
_os
<<
msg
;
\
__android_log_print
(
ANDROID_LOG_DEBUG
,
"STITCHING"
,
"%s"
,
_os
.
str
().
c_str
());
\
}
while
(
0
);
#else
#include <iostream>
#define LOG(msg) do { std::cout << msg; std::cout.flush(); } while(0);
#endif
#else
#define LOG(msg)
#endif
...
...
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