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

#include "wimage.hpp"

Inheritance diagram for cv::WImageViewC< T, C >:
Collaboration diagram for cv::WImageViewC< T, C >:

Public Types

enum  { kChannels = C }
 
enum  { kChannels = C }
 
typedef WImage< T >::BaseType BaseType
 

Public Member Functions

 WImageViewC ()
 
 WImageViewC (WImageC< T, C > *img, int c, int r, int width, int height)
 
 WImageViewC (T *data, int width, int height, int width_step=-1)
 
 WImageViewC (IplImage *img)
 
 WImageViewC (const WImageC< T, C > &img)
 
 WImageViewC (const WImageViewC< T, C > &img)
 
virtual ~WImageViewC ()
 
int Channels () const
 
int ChannelSize () const
 
void CopyFrom (const WImage< T > &src)
 
void CopyFrom (const WImageC< T, C > &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
 
T * operator() (int c, int r)
 
const T * operator() (int c, int r) const
 
WImageViewCoperator= (const WImageC< T, C > &img)
 
WImageViewCoperator= (const WImageViewC< T, C > &img)
 
int PixelSize () const
 
const T * Row (int r) const
 
T * Row (int r)
 
void SetZero ()
 
WImageViewC< T, C > View (int c, int r, int width, int height)
 
int Width () const
 
int WidthStep () const
 

Protected Member Functions

void SetIpl (IplImage *image)
 

Protected Attributes

IplImage header_
 
IplImageimage_
 

Member Typedef Documentation

template<typename T, int C>
typedef WImage<T>::BaseType cv::WImageViewC< T, C >::BaseType

Member Enumeration Documentation

template<typename T, int C>
anonymous enum
inherited
Enumerator
kChannels 
template<typename T, int C>
anonymous enum
Enumerator
kChannels 

Constructor & Destructor Documentation

template<typename T, int C>
virtual cv::WImageViewC< T, C >::~WImageViewC ( )
inlinevirtual
template<typename T, int C>
cv::WImageViewC< T, C >::WImageViewC ( IplImage img)
inline
template<typename T, int C>
cv::WImageViewC< T, C >::WImageViewC ( const WImageC< T, C > &  img)
inline

References cv::WImage< T >::Ipl(), and cv::WImageC< T, C >::SetIpl().

Here is the call graph for this function:

template<typename T, int C>
cv::WImageViewC< T, C >::WImageViewC ( const WImageViewC< T, C > &  img)
inline

References cv::WImage< T >::Ipl(), and cv::WImageC< T, C >::SetIpl().

Here is the call graph for this function:

Member Function Documentation

template<typename T, int C>
int cv::WImageC< T, C >::Channels ( ) const
inlineinherited

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

Here is the call graph for this function:

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::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 C>
void cv::WImageC< T, C >::CopyFrom ( const WImageC< T, C > &  src)
inlineinherited

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

Here is the call 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>
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 C>
WImageViewC& cv::WImageViewC< T, C >::operator= ( const WImageC< T, C > &  img)
inline

References cv::WImage< T >::Ipl(), and cv::WImageC< T, C >::SetIpl().

Here is the call graph for this function:

template<typename T, int C>
WImageViewC& cv::WImageViewC< T, C >::operator= ( const WImageViewC< T, C > &  img)
inline

References cv::WImage< T >::Ipl(), and cv::WImageC< T, C >::SetIpl().

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>
const T* cv::WImage< T >::Row ( int  r) const
inlineinherited
template<typename T>
T* cv::WImage< T >::Row ( int  r)
inlineinherited
template<typename T, int C>
void cv::WImageC< T, C >::SetIpl ( IplImage image)
inlineprotectedinherited
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

template<typename T, int C>
IplImage cv::WImageViewC< T, C >::header_
protected

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