libkipr  1.0.0
kipr::camera::Image Class Reference

#include <image.hpp>

Public Types

enum class  Type { Grey8 , Rgb888 , Bgr888 }
 

Public Member Functions

 Image ()
 
 Image (const Type type, const unsigned width, const unsigned height, const unsigned stride, unsigned char *const data, const bool owned=true)
 
 Image (const Image &)
 
 Image (Image &&)
 
Imageoperator= (Image)
 
 ~Image ()
 
bool isEmpty () const
 
Type getType () const
 
const unsigned char *const getData () const
 
unsigned getWidth () const
 
unsigned getHeight () const
 
unsigned getStride () const
 
bool isOwned () const
 

Friends

void swap (Image &first, Image &second)
 

Member Enumeration Documentation

◆ Type

Enumerator
Grey8 
Rgb888 
Bgr888 

Constructor & Destructor Documentation

◆ Image() [1/4]

kipr::camera::Image::Image ( )

◆ Image() [2/4]

kipr::camera::Image::Image ( const Type  type,
const unsigned  width,
const unsigned  height,
const unsigned  stride,
unsigned char *const  data,
const bool  owned = true 
)

◆ Image() [3/4]

kipr::camera::Image::Image ( const Image )

◆ Image() [4/4]

kipr::camera::Image::Image ( Image &&  )

◆ ~Image()

kipr::camera::Image::~Image ( )

Member Function Documentation

◆ getData()

const unsigned char* const kipr::camera::Image::getData ( ) const

◆ getHeight()

unsigned kipr::camera::Image::getHeight ( ) const

◆ getStride()

unsigned kipr::camera::Image::getStride ( ) const

◆ getType()

Type kipr::camera::Image::getType ( ) const

◆ getWidth()

unsigned kipr::camera::Image::getWidth ( ) const

◆ isEmpty()

bool kipr::camera::Image::isEmpty ( ) const

◆ isOwned()

bool kipr::camera::Image::isOwned ( ) const

◆ operator=()

Image& kipr::camera::Image::operator= ( Image  )

Friends And Related Function Documentation

◆ swap

void swap ( Image first,
Image second 
)
friend

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