Ask Your Question

aneeesh's profile - activity

2014-07-14 14:16:01 -0600 commented question How does logging work in the stitching_detailed example?

Thanks! Just adding preprocessor macro didn't work. I had to edit the header file a bit and it worked!

2014-07-14 04:57:04 -0600 commented question How does logging work in the stitching_detailed example?

Thanks! But where do i see the output of LOGLN()? and also, is #undef ENABLE_LOG followed by #define ENABLE_LOG 1 the right way to use it?

2014-07-14 04:44:18 -0600 asked a question How does logging work in the stitching_detailed example?

Hi, I'm new to opencv and c++ as well. I was going through the stitching detailed sample which comes with opencv 2.4.9. I saw that there is some code for timing the functions in between #if ENABLE_LOG and also there are some lines using "LOGLN()" . Looking at them, i kind of figured out what they do. But how do I enable them? And where will I see the output? Will it be on stdout? I tried adding "#undef ENABLE_LOG" followed by "#define ENABLE_LOG 1" but I couldn't see any output from those lines. I also checked the opencv2/stitching/detail/util.hpp file where they seem to be defined but couldn't figure out what was going on. Are they IDE specific? (I'm using Xcode 5)