OpenCV  2.4.13
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::CvImage ( )
inline
CvImage::CvImage ( CvSize  _size,
int  _depth,
int  _channels 
)
inline
CvImage::CvImage ( IplImage img)
inline
CvImage::CvImage ( const CvImage img)
inline
CvImage::CvImage ( const char *  filename,
const char *  imgname = 0,
int  color = -1 
)
inline
CvImage::CvImage ( CvFileStorage fs,
const char *  mapname,
const char *  imgname 
)
inline
CvImage::CvImage ( CvFileStorage fs,
const char *  seqname,
int  idx 
)
inline
CvImage::~CvImage ( )
inline

Member Function Documentation

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

Member Data Documentation

IplImage* CvImage::image
protected
int* CvImage::refcount
protected

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