OSVR-Core
Namespaces | Functions
ImageSourceFactories.h File Reference

Header. More...

#include "ImageSource.h"

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 

Functions

ImageSourcePtr osvr::vbtracker::openOpenCVCamera (int which)
 Factory method to open an OpenCV camera by number.
 
ImageSourcePtr osvr::vbtracker::openUVCCamera (int vendor_id=0, int product_id=0, const char *serial_number=nullptr)
 Factory method to open a USB video class (UVC) device as an image source. More...
 
ImageSourcePtr osvr::vbtracker::openHDKCameraUVC (const char *serial_number=nullptr)
 Factory method to open the HDK camera as an image source via libuvc. More...
 
ImageSourcePtr osvr::vbtracker::openImageFileSequence (std::string const &dir)
 Factory method to open a directory of tif files named 0001.tif and onward as an image source (looping)
 
ImageSourcePtr osvr::vbtracker::openDK2WrappedCamera (ImageSourcePtr &&cam, bool doHid)
 Factory method to wrap an image source, already determined to be an Oculus DK2 camera, with unscrambling and keep-alive code. More...
 

Detailed Description

Header.

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

Function Documentation

§ openDK2WrappedCamera()

ImageSourcePtr osvr::vbtracker::openDK2WrappedCamera ( ImageSourcePtr &&  cam,
bool  doHid 
)

Factory method to wrap an image source, already determined to be an Oculus DK2 camera, with unscrambling and keep-alive code.

§ openHDKCameraUVC()

ImageSourcePtr osvr::vbtracker::openHDKCameraUVC ( const char *  serial_number)

Factory method to open the HDK camera as an image source via libuvc.

with a nullptr serial number, just opens the "first" HDK camera device

§ openUVCCamera()

ImageSourcePtr osvr::vbtracker::openUVCCamera ( int  vendor_id = 0,
int  product_id = 0,
const char *  serial_number = nullptr 
)

Factory method to open a USB video class (UVC) device as an image source.