libkipr  1.0.0
kipr::camera::Device Class Reference

#include <camera.hpp>

Public Member Functions

 Device ()
 
 ~Device ()
 
bool open (const int number=0, Resolution resolution=LOW_RES, Model model=WHITE_2016)
 
bool isOpen () const
 
bool close ()
 
bool update ()
 
unsigned width () const
 
unsigned height () const
 
const std::vector< Channel * > & channels () const
 
Image rawImage () const
 
void setConfig (const config::Config &config)
 
const config::Configconfig () const
 
const unsigned char * bgr () const
 
Model getModel ()
 

Static Public Member Functions

static unsigned int resolutionToHeight (Resolution res)
 
static unsigned int resolutionToWidth (Resolution res)
 

Constructor & Destructor Documentation

◆ Device()

kipr::camera::Device::Device ( )

◆ ~Device()

kipr::camera::Device::~Device ( )

Member Function Documentation

◆ bgr()

const unsigned char* kipr::camera::Device::bgr ( ) const

◆ channels()

const std::vector<Channel *>& kipr::camera::Device::channels ( ) const

◆ close()

bool kipr::camera::Device::close ( )

◆ config()

const config::Config& kipr::camera::Device::config ( ) const

◆ getModel()

Model kipr::camera::Device::getModel ( )

◆ height()

unsigned kipr::camera::Device::height ( ) const

◆ isOpen()

bool kipr::camera::Device::isOpen ( ) const

◆ open()

bool kipr::camera::Device::open ( const int  number = 0,
Resolution  resolution = LOW_RES,
Model  model = WHITE_2016 
)

◆ rawImage()

Image kipr::camera::Device::rawImage ( ) const

◆ resolutionToHeight()

static unsigned int kipr::camera::Device::resolutionToHeight ( Resolution  res)
static

◆ resolutionToWidth()

static unsigned int kipr::camera::Device::resolutionToWidth ( Resolution  res)
static

◆ setConfig()

void kipr::camera::Device::setConfig ( const config::Config config)

◆ update()

bool kipr::camera::Device::update ( )

◆ width()

unsigned kipr::camera::Device::width ( ) const

The documentation for this class was generated from the following file: