OpenCV  4.0.0-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::WImageBufferC< T, C > Class Template Reference

Like a WImageBuffer class but when the number of channels is known at compile time. More...

#include "wimage.hpp"

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

Public Types

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

Public Member Functions

 WImageBufferC ()
 
 WImageBufferC (int width, int height)
 
 WImageBufferC (IplImage *img)
 
 ~WImageBufferC ()
 
void Allocate (int width, int height)
 
int Channels () const
 
int ChannelSize () const
 
void CloneFrom (const WImageC< T, C > &src)
 
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
 
TImageData ()
 
const TImageData () const
 
IplImageIpl ()
 
const IplImageIpl () const
 
bool IsNull () const
 
Toperator() (int c, int r)
 
const Toperator() (int c, int r) const
 
int PixelSize () const
 
void ReleaseImage ()
 
const TRow (int r) const
 
TRow (int r)
 
void SetIpl (IplImage *img)
 
void SetZero ()
 
WImageViewC< T, C > View (int c, int r, int width, int height)
 
int Width () const
 
int WidthStep () const
 

Protected Attributes

IplImageimage_
 

Detailed Description

template<typename T, int C>
class cv::WImageBufferC< T, C >

Like a WImageBuffer class but when the number of channels is known at compile time.

Member Typedef Documentation

◆ BaseType

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

Member Enumeration Documentation

◆ anonymous enum

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

◆ anonymous enum

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

Constructor & Destructor Documentation

◆ WImageBufferC() [1/3]

template<typename T , int C>
cv::WImageBufferC< T, C >::WImageBufferC ( )
inline

◆ WImageBufferC() [2/3]

template<typename T , int C>
cv::WImageBufferC< T, C >::WImageBufferC ( int  width,
int  height 
)
inline

◆ WImageBufferC() [3/3]

template<typename T , int C>
cv::WImageBufferC< T, C >::WImageBufferC ( IplImage img)
inlineexplicit

◆ ~WImageBufferC()

template<typename T , int C>
cv::WImageBufferC< T, C >::~WImageBufferC ( )
inline

Member Function Documentation

◆ Channels()

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:

◆ ChannelSize()

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

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

Here is the caller graph for this function:

◆ CloneFrom()

template<typename T , int C>
void cv::WImageBufferC< T, C >::CloneFrom ( const WImageC< T, C > &  src)
inline

References cv::WImage< T >::CopyFrom(), cv::WImage< T >::Height(), and cv::WImage< T >::Width().

Here is the call graph for this function:

◆ CopyFrom() [1/2]

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:

◆ CopyFrom() [2/2]

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:

◆ Depth() [1/8]

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

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

Here is the caller graph for this function:

◆ Depth() [2/8]

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

References IPL_DEPTH_8U.

◆ Depth() [3/8]

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

References IPL_DEPTH_8S.

◆ Depth() [4/8]

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

References IPL_DEPTH_16S.

◆ Depth() [5/8]

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

References IPL_DEPTH_16U.

◆ Depth() [6/8]

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

References IPL_DEPTH_32S.

◆ Depth() [7/8]

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

References IPL_DEPTH_32F.

◆ Depth() [8/8]

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

References IPL_DEPTH_64F.

◆ Height()

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:

◆ ImageData() [1/2]

template<typename T>
T* cv::WImage< T >::ImageData ( )
inlineinherited

◆ ImageData() [2/2]

template<typename T>
const T* cv::WImage< T >::ImageData ( ) const
inlineinherited

◆ Ipl() [1/2]

◆ Ipl() [2/2]

template<typename T>
const IplImage* cv::WImage< T >::Ipl ( ) const
inlineinherited

◆ IsNull()

template<typename T , int C>
bool cv::WImageBufferC< T, C >::IsNull ( ) const
inline

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

Here is the call graph for this function:

◆ operator()() [1/2]

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:

◆ operator()() [2/2]

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:

◆ PixelSize()

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:

◆ ReleaseImage()

template<typename T , int C>
void cv::WImageBufferC< T, C >::ReleaseImage ( )
inline

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

Here is the call graph for this function:

◆ Row() [1/2]

template<typename T>
const T* cv::WImage< T >::Row ( int  r) const
inlineinherited

◆ Row() [2/2]

template<typename T>
T* cv::WImage< T >::Row ( int  r)
inlineinherited

◆ SetIpl()

template<typename T , int C>
void cv::WImageBufferC< T, C >::SetIpl ( IplImage img)
inline

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

Here is the call graph for this function:

◆ SetZero()

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

◆ Width()

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:

◆ WidthStep()

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

Member Data Documentation

◆ image_


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