#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 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 () |
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::Mat * | mMat |
int32_t | mWidth |
int32_t | mHeight |
ColorModel | mColorModel |
DataType | mDataType |
ChannelOrder | mChannelOrder |
|
protected |
|
static |
|
virtual |
Reimplemented from cinder::ImageIo.
|
virtual |
Implements cinder::ImageTarget.
|
protected |