OSVR-Core
|
Implementation. More...
#include <BlobExtractor.h>
#include <BlobParams.h>
#include <EdgeHoleBasedLedExtractor.h>
#include <OptionalStream.h>
#include <ParseBlobParams.h>
#include <cvUtils.h>
#include <json/reader.h>
#include <json/value.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <random>
#include <sstream>
Namespaces | |
osvr | |
The main namespace for all C++ elements of the framework, internal and external. | |
Functions | |
void | osvr::vbtracker::showImage (std::string const &title, cv::Mat const &img, bool showImages=true) |
void | osvr::vbtracker::handleImage (std::string const &fn, cv::Mat color, cv::Mat gray, bool pause, bool showImages=true) |
void | osvr::vbtracker::handleImage (std::string const &fn, bool pause) |
void | processAVI (std::string const &fn) |
void | tryLoadingConfigFile () |
int | main (int argc, char *argv[]) |
Implementation.
void osvr::vbtracker::handleImage | ( | std::string const & | fn, |
cv::Mat | color, | ||
cv::Mat | gray, | ||
bool | pause, | ||
bool | showImages = true |
||
) |
Initial image loading
Edge detection
Extract beacons from the edge detection image
Produce a colored debug image where each accepted contour is encircled with a different color.
OK, so that's where we'll center the text, now we have to see how big the text is to offset it...
Draw and label the rejected centers of contours.
void osvr::vbtracker::handleImage | ( | std::string const & | fn, |
bool | pause | ||
) |
Initial image loading
int main | ( | int | argc, |
char * | argv[] | ||
) |
Look for a config file (optional)
Don't stop before exiting if we've got multiple to process.
has .avi but isn't a file extracted from an AVI.