cinder::ImageTargetCvMat Class Reference

#include <CinderOpenCV.h>

Inherits cinder::ImageTarget.

List of all members.

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 void * getRowPointer (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::string > getLoadExtensions ()
static std::vector< std::string > getWriteExtensions ()

Public Attributes

 CM_RGB
 CM_GRAY
 CM_UNKNOWN
 UINT8
 UINT16
 FLOAT32
 DATA_UNKNOWN
 CHAN_RGB_R
 CHAN_RGB_G
 CHAN_RGB_B
 CHAN_GRAY
 CHAN_ALPHA
 CHAN_MASK
 CHAN_LAB_L
 CHAN_LAB_A
 CHAN_LAB_B
 CHAN_YUV_Y
 CHAN_YUV_U
 CHAN_YUV_V
 CHAN_CMYK_C
 CHAN_CMYK_M
 CHAN_CMYK_Y
 CHAN_CMYK_K
 CHAN_UNKNOWN
 RGBA
 BGRA
 ARGB
 ABGR
 RGBX
 BGRX
 XRGB
 XBGR
 RGB
 BGR
 Y
 YA
 CUSTOM

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::ImageTarget.

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

Implements cinder::ImageTarget.


Member Data Documentation


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