OSVR-Core
Namespaces | Functions
BlobExtractionDemo.cpp File Reference

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[])
 

Detailed Description

Implementation.

Date
2016
Author
Sensics, Inc. http://sensics.com/osvr

Function Documentation

§ handleImage() [1/2]

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.

§ handleImage() [2/2]

void osvr::vbtracker::handleImage ( std::string const &  fn,
bool  pause 
)

Initial image loading

§ main()

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.