OpenCV  2.4.13.6
Open Source Computer Vision
CvImage Class Reference

#include <legacy.hpp>

Public Member Functions

 CvImage ()
 
 CvImage (CvSize _size, int _depth, int _channels)
 
 CvImage (IplImage *img)
 
 CvImage (const CvImage &img)
 
 CvImage (const char *filename, const char *imgname=0, int color=-1)
 
 CvImage (CvFileStorage *fs, const char *mapname, const char *imgname)
 
 CvImage (CvFileStorage *fs, const char *seqname, int idx)
 
 ~CvImage ()
 
CvImage clone ()
 
void create (CvSize _size, int _depth, int _channels)
 
void release ()
 
void clear ()
 
void attach (IplImage *img, bool use_refcount=true)
 
void detach ()
 
bool load (const char *filename, const char *imgname=0, int color=-1)
 
bool read (CvFileStorage *fs, const char *mapname, const char *imgname)
 
bool read (CvFileStorage *fs, const char *seqname, int idx)
 
void save (const char *filename, const char *imgname, const int *params=0)
 
void write (CvFileStorage *fs, const char *imgname)
 
void show (const char *window_name)
 
bool is_valid ()
 
int width () const
 
int height () const
 
CvSize size () const
 
CvSize roi_size () const
 
CvRect roi () const
 
int coi () const
 
void set_roi (CvRect _roi)
 
void reset_roi ()
 
void set_coi (int _coi)
 
int depth () const
 
int channels () const
 
int pix_size () const
 
uchardata ()
 
const uchardata () const
 
int step () const
 
int origin () const
 
ucharroi_row (int y)
 
const ucharroi_row (int y) const
 
 operator const IplImage * () const
 
 operator IplImage * ()
 
CvImageoperator= (const CvImage &img)
 

Protected Attributes

IplImageimage
 
intrefcount
 

Constructor & Destructor Documentation

§ CvImage() [1/7]

CvImage::CvImage ( )
inline

§ CvImage() [2/7]

CvImage::CvImage ( CvSize  _size,
int  _depth,
int  _channels 
)
inline

§ CvImage() [3/7]

CvImage::CvImage ( IplImage img)
inline

§ CvImage() [4/7]

CvImage::CvImage ( const CvImage img)
inline

§ CvImage() [5/7]

CvImage::CvImage ( const char *  filename,
const char *  imgname = 0,
int  color = -1 
)
inline

§ CvImage() [6/7]

CvImage::CvImage ( CvFileStorage fs,
const char *  mapname,
const char *  imgname 
)
inline

§ CvImage() [7/7]

CvImage::CvImage ( CvFileStorage fs,
const char *  seqname,
int  idx 
)
inline

§ ~CvImage()

CvImage::~CvImage ( )
inline

Member Function Documentation

§ attach()

void CvImage::attach ( IplImage img,
bool  use_refcount = true 
)
inline

§ channels()

int CvImage::channels ( ) const
inline

§ clear()

void CvImage::clear ( )
inline

§ clone()

CvImage CvImage::clone ( )
inline

§ coi()

int CvImage::coi ( ) const
inline

§ create()

void CvImage::create ( CvSize  _size,
int  _depth,
int  _channels 
)
inline

§ data() [1/2]

uchar* CvImage::data ( )
inline

§ data() [2/2]

const uchar* CvImage::data ( ) const
inline

§ depth()

int CvImage::depth ( ) const
inline

§ detach()

void CvImage::detach ( )
inline

§ height()

int CvImage::height ( ) const
inline

§ is_valid()

bool CvImage::is_valid ( )
inline

§ load()

bool CvImage::load ( const char *  filename,
const char *  imgname = 0,
int  color = -1 
)

§ operator const IplImage *()

CvImage::operator const IplImage * ( ) const
inline

§ operator IplImage *()

CvImage::operator IplImage * ( )
inline

§ operator=()

CvImage& CvImage::operator= ( const CvImage img)
inline

§ origin()

int CvImage::origin ( ) const
inline

§ pix_size()

int CvImage::pix_size ( ) const
inline

§ read() [1/2]

bool CvImage::read ( CvFileStorage fs,
const char *  mapname,
const char *  imgname 
)

§ read() [2/2]

bool CvImage::read ( CvFileStorage fs,
const char *  seqname,
int  idx 
)

§ release()

void CvImage::release ( )
inline

§ reset_roi()

void CvImage::reset_roi ( )
inline

§ roi()

CvRect CvImage::roi ( ) const
inline

§ roi_row() [1/2]

uchar* CvImage::roi_row ( int  y)
inline

§ roi_row() [2/2]

const uchar* CvImage::roi_row ( int  y) const
inline

§ roi_size()

CvSize CvImage::roi_size ( ) const
inline

§ save()

void CvImage::save ( const char *  filename,
const char *  imgname,
const int params = 0 
)

§ set_coi()

void CvImage::set_coi ( int  _coi)
inline

§ set_roi()

void CvImage::set_roi ( CvRect  _roi)
inline

§ show()

void CvImage::show ( const char *  window_name)

§ size()

CvSize CvImage::size ( ) const
inline

§ step()

int CvImage::step ( ) const
inline

§ width()

int CvImage::width ( ) const
inline

§ write()

void CvImage::write ( CvFileStorage fs,
const char *  imgname 
)

Member Data Documentation

§ image

IplImage* CvImage::image
protected

§ refcount

int* CvImage::refcount
protected

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