OpenCV  3.2.0-dev
Open Source Computer Vision
cv::WImageBuffer< T > Class Template Reference

Image class which owns the data, so it can be allocated and is always freed. More...

#include "wimage.hpp"

Inheritance diagram for cv::WImageBuffer< T >:
Collaboration diagram for cv::WImageBuffer< T >:

Public Types

typedef WImage< T >::BaseType BaseType
 

Public Member Functions

 WImageBuffer ()
 
 WImageBuffer (int width, int height, int nchannels)
 
 WImageBuffer (IplImage *img)
 
 ~WImageBuffer ()
 
void Allocate (int width, int height, int nchannels)
 
int Channels () const
 
int ChannelSize () const
 
void CloneFrom (const WImage< T > &src)
 
void CopyFrom (const WImage< T > &src)
 
int Depth () const
 
template<>
int Depth () const
 
template<>
int Depth () const
 
template<>
int Depth () const
 
template<>
int Depth () const
 
template<>
int Depth () const
 
template<>
int Depth () const
 
template<>
int Depth () const
 
int Height () const
 
T * ImageData ()
 
const T * ImageData () const
 
IplImageIpl ()
 
const IplImageIpl () const
 
bool IsNull () const
 
T * operator() (int c, int r)
 
const T * operator() (int c, int r) const
 
int PixelSize () const
 
void ReleaseImage ()
 
const T * Row (int r) const
 
T * Row (int r)
 
void SetIpl (IplImage *img)
 
void SetZero ()
 
WImageView< T > View (int c, int r, int width, int height)
 
int Width () const
 
int WidthStep () const
 

Protected Attributes

IplImageimage_
 

Detailed Description

template<typename T>
class cv::WImageBuffer< T >

Image class which owns the data, so it can be allocated and is always freed.

It cannot be copied but can be explicity cloned.

Member Typedef Documentation

template<typename T >
typedef WImage<T>::BaseType cv::WImageBuffer< T >::BaseType

Constructor & Destructor Documentation

template<typename T >
cv::WImageBuffer< T >::WImageBuffer ( )
inline
template<typename T >
cv::WImageBuffer< T >::WImageBuffer ( int  width,
int  height,
int  nchannels 
)
inline
template<typename T >
cv::WImageBuffer< T >::WImageBuffer ( IplImage img)
inlineexplicit
template<typename T >
cv::WImageBuffer< T >::~WImageBuffer ( )
inline

Member Function Documentation

template<typename T>
int cv::WImage< T >::Channels ( ) const
inlineinherited
template<typename T>
int cv::WImage< T >::ChannelSize ( ) const
inlineinherited

Referenced by cv::WImage< T >::PixelSize().

Here is the caller graph for this function:

template<typename T >
void cv::WImageBuffer< T >::CloneFrom ( const WImage< T > &  src)
inline
template<typename T>
void cv::WImage< T >::CopyFrom ( const WImage< T > &  src)
inlineinherited

References cvCopy(), cv::WImage< T >::image_, and cv::WImage< T >::Ipl().

Referenced by cv::WImageBuffer< T >::CloneFrom(), and cv::WImageBufferC< T, C >::CloneFrom().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T>
int cv::WImage< T >::Depth ( ) const
inherited

Referenced by cv::WImage< T >::PixelSize().

Here is the caller graph for this function:

template<>
int cv::WImage< uchar >::Depth ( ) const
inlineinherited

References IPL_DEPTH_8U.

template<>
int cv::WImage< signed char >::Depth ( ) const
inlineinherited

References IPL_DEPTH_8S.

template<>
int cv::WImage< short >::Depth ( ) const
inlineinherited

References IPL_DEPTH_16S.

template<>
int cv::WImage< ushort >::Depth ( ) const
inlineinherited

References IPL_DEPTH_16U.

template<>
int cv::WImage< int >::Depth ( ) const
inlineinherited

References IPL_DEPTH_32S.

template<>
int cv::WImage< float >::Depth ( ) const
inlineinherited

References IPL_DEPTH_32F.

template<>
int cv::WImage< double >::Depth ( ) const
inlineinherited

References IPL_DEPTH_64F.

template<typename T>
int cv::WImage< T >::Height ( ) const
inlineinherited

References IplImage::height, and cv::WImage< T >::image_.

Referenced by cv::WImageBuffer< T >::CloneFrom(), and cv::WImageBufferC< T, C >::CloneFrom().

Here is the caller graph for this function:

template<typename T>
T* cv::WImage< T >::ImageData ( )
inlineinherited
template<typename T>
const T* cv::WImage< T >::ImageData ( ) const
inlineinherited
template<typename T>
const IplImage* cv::WImage< T >::Ipl ( ) const
inlineinherited
template<typename T >
bool cv::WImageBuffer< T >::IsNull ( ) const
inline

References cv::WImage< T >::operator=().

Here is the call graph for this function:

template<typename T>
T* cv::WImage< T >::operator() ( int  c,
int  r 
)
inlineinherited

References cv::WImage< T >::Channels(), cv::WImage< T >::image_, IplImage::imageData, and IplImage::widthStep.

Here is the call graph for this function:

template<typename T>
const T* cv::WImage< T >::operator() ( int  c,
int  r 
) const
inlineinherited

References cv::WImage< T >::Channels(), cv::WImage< T >::image_, IplImage::imageData, and IplImage::widthStep.

Here is the call graph for this function:

template<typename T>
int cv::WImage< T >::PixelSize ( ) const
inlineinherited

References cv::WImage< T >::Channels(), cv::WImage< T >::ChannelSize(), and cv::WImage< T >::Depth().

Here is the call graph for this function:

template<typename T >
void cv::WImageBuffer< T >::ReleaseImage ( )
inline

References cvReleaseImage(), and cv::WImage< T >::SetIpl().

Here is the call graph for this function:

template<typename T>
const T* cv::WImage< T >::Row ( int  r) const
inlineinherited
template<typename T>
T* cv::WImage< T >::Row ( int  r)
inlineinherited
template<typename T >
void cv::WImageBuffer< T >::SetIpl ( IplImage img)
inline

References cv::WImage< T >::SetIpl().

Here is the call graph for this function:

template<typename T>
void cv::WImage< T >::SetZero ( )
inlineinherited
template<typename T>
int cv::WImage< T >::Width ( ) const
inlineinherited

References cv::WImage< T >::image_, and IplImage::width.

Referenced by cv::WImageBuffer< T >::CloneFrom(), and cv::WImageBufferC< T, C >::CloneFrom().

Here is the caller graph for this function:

template<typename T>
int cv::WImage< T >::WidthStep ( ) const
inlineinherited

Member Data Documentation


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