opencv  2.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
CvImage Class Reference

#include <legacy.hpp>

Public Member Functions

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

Protected Attributes

IplImageimage
 
int * refcount
 

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: