Skip to content
Snippets Groups Projects
Commit e669887a authored by d.kilic's avatar d.kilic
Browse files

Merge branch '74-debout-path-name' into 'master'

Resolve "debout path name"

Closes #74

See merge request !51
parents f675dd6f 9f6b2d96
No related branches found
No related tags found
1 merge request!51Resolve "debout path name"
Pipeline #25787 passed
......@@ -14,11 +14,23 @@ extern QString commandLineOptionsString;
// stefans ansatz steht in svt_system (nicht besser); noetig: #include "imagehlp.h"
// this ausserhalb von objekt nicht verfuegbar: #define debout cout << typeid(this).name() << "." << __func__ << " in " << __FILE__ << " line " << __LINE__ << ": "
constexpr const char* file_name(const char* path) {
const char* file = path;
while (*path) {
const char current = *path;
++path;
if (current == '/' || current == '\\') {
file = path;
}
}
return file;
}
// gleiche Variable wie QT benutzt, es gibt auch noch QT_NO_DEBUG and QT_NO_WARNING_OUTPUT
#ifdef QT_NO_DEBUG_OUTPUT
#define debout //
#else
#define debout std::cout << __func__ << " in " << __FILE__ << " line " << __LINE__ << ": "
#define debout std::cout << __func__ << " in " << file_name(__FILE__) << " line " << __LINE__ << ": "
#endif
#include <iostream>
......
......@@ -1181,9 +1181,7 @@ void findCodeMarker(Mat &img, QList<TrackPoint> *crossList, Control *controlWidg
debout << "start detectCodeMarkers : " << getElapsedTime() <<endl;
#endif
//debout << "XXX: " << img.locateROI();
aruco::detectMarkers(img/*copy.clone()*/, dictionary, corners, ids, detectorParams, rejected);
debout << "findCodeMarker: dictID: " << codeMarkerWidget->dictList->currentIndex() << endl; // used dictionary
#ifdef TIME_MEASUREMENT
// "==========: "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment