libwallaby  v24
The wallaby standard library
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 ()
 
void setWidth (const unsigned width)
 
void setHeight (const unsigned height)
 
unsigned width () const
 
unsigned height () const
 
const ChannelPtrVectorchannels () const
 
const cv::Mat & rawImage () const
 
void setConfig (const Config &config)
 
const 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()

Camera::Device::Device ( )

◆ ~Device()

Camera::Device::~Device ( )

Member Function Documentation

◆ bgr()

const unsigned char* Camera::Device::bgr ( ) const

◆ channels()

const ChannelPtrVector& Camera::Device::channels ( ) const

◆ close()

bool Camera::Device::close ( )

◆ config()

const Config& Camera::Device::config ( ) const

◆ getModel()

Model Camera::Device::getModel ( )

◆ height()

unsigned Camera::Device::height ( ) const

◆ isOpen()

bool Camera::Device::isOpen ( ) const

◆ open()

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

◆ rawImage()

const cv::Mat& Camera::Device::rawImage ( ) const

◆ resolutionToHeight()

static unsigned int Camera::Device::resolutionToHeight ( Resolution  res)
static

◆ resolutionToWidth()

static unsigned int Camera::Device::resolutionToWidth ( Resolution  res)
static

◆ setConfig()

void Camera::Device::setConfig ( const Config config)

◆ setHeight()

void Camera::Device::setHeight ( const unsigned  height)

◆ setWidth()

void Camera::Device::setWidth ( const unsigned  width)

◆ update()

bool Camera::Device::update ( )

◆ width()

unsigned Camera::Device::width ( ) const

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