Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cinder::ImageTargetCvMat Class Reference

#include <CinderOpenCV.h>

Inherits cinder::ImageTarget.

Public Types

enum  ColorModel
 
typedef enum
cinder::ImageIo::ColorModel 
ColorModel
 
enum  DataType
 
typedef enum
cinder::ImageIo::DataType 
DataType
 
enum  ChannelType
 
typedef enum
cinder::ImageIo::ChannelType 
ChannelType
 
enum  ChannelOrder
 
typedef enum
cinder::ImageIo::ChannelOrder 
ChannelOrder
 

Public Member Functions

virtual bool hasAlpha () const
 
virtual voidgetRowPointer (int32_t row)
 
virtual void setRow (int32_t row, const void *data)
 
virtual void finalize ()
 
int32_t getWidth () const
 
int32_t getHeight () const
 
ColorModel getColorModel () const
 
DataType getDataType () const
 
ChannelOrder getChannelOrder () const
 

Static Public Member Functions

static std::shared_ptr
< ImageTargetCvMat
createRef (cv::Mat *mat)
 
static void translateRgbColorModelToOffsets (ChannelOrder channelOrder, int8_t *red, int8_t *green, int8_t *blue, int8_t *alpha, int8_t *inc)
 
static void translateGrayColorModelToOffsets (ChannelOrder channelOrder, int8_t *gray, int8_t *alpha, int8_t *inc)
 
static bool channelOrderHasAlpha (ChannelOrder channelOrder)
 
static int8_t channelOrderNumChannels (ChannelOrder channelOrder)
 
static uint8_t dataTypeBytes (DataType dataType)
 
static std::vector< std::stringgetLoadExtensions ()
 
static std::vector< std::stringgetWriteExtensions ()
 

Protected Member Functions

 ImageTargetCvMat (cv::Mat *mat)
 
void setSize (int32_t width, int32_t height)
 
void setColorModel (ColorModel colorModel)
 
void setDataType (DataType aDataType)
 
void setChannelOrder (ChannelOrder aChannelOrder)
 

Protected Attributes

cv::MatmMat
 
int32_t mWidth
 
int32_t mHeight
 
ColorModel mColorModel
 
DataType mDataType
 
ChannelOrder mChannelOrder
 

Constructor & Destructor Documentation

cinder::ImageTargetCvMat::ImageTargetCvMat ( cv::Mat mat)
protected

Member Function Documentation

static std::shared_ptr<ImageTargetCvMat> cinder::ImageTargetCvMat::createRef ( cv::Mat mat)
static
virtual bool cinder::ImageTargetCvMat::hasAlpha ( ) const
virtual

Reimplemented from cinder::ImageIo.

virtual void* cinder::ImageTargetCvMat::getRowPointer ( int32_t  row)
virtual

Implements cinder::ImageTarget.

Member Data Documentation

cv::Mat* cinder::ImageTargetCvMat::mMat
protected

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