Image class when both the pixel type and number of channels are known at compile time. More...
#include "wimage.hpp"
Public Types | |
enum | { kChannels = C } |
typedef WImage< T >::BaseType | BaseType |
Public Member Functions | |
WImageC (IplImage *img) | |
virtual | ~WImageC ()=0 |
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 |
IplImage * | Ipl () |
const IplImage * | Ipl () const |
T * | operator() (int c, int r) |
const T * | operator() (int c, int r) const |
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 | |
WImageC (const WImageC &) | |
void | operator= (const WImageC &) |
void | SetIpl (IplImage *image) |
Protected Attributes | |
IplImage * | image_ |
Image class when both the pixel type and number of channels are known at compile time.
This wrapper will speed up some of the operations like accessing individual pixels using the () operator.
typedef WImage<T>::BaseType cv::WImageC< T, C >::BaseType |
|
inlineexplicit |
References cv::WImage< T >::Channels(), IplImage::nChannels, and cv::WImage< T >::View().
|
protected |
|
inline |
|
inlineinherited |
|
inlineinherited |
References cvCopy(), cv::WImage< T >::image_, and cv::WImage< T >::Ipl().
Referenced by cv::WImageBuffer< T >::CloneFrom(), and cv::WImageBufferC< T, C >::CloneFrom().
|
inline |
|
inherited |
|
inlineinherited |
References IPL_DEPTH_8U.
|
inlineinherited |
References IPL_DEPTH_8S.
|
inlineinherited |
References IPL_DEPTH_16S.
|
inlineinherited |
References IPL_DEPTH_16U.
|
inlineinherited |
References IPL_DEPTH_32S.
|
inlineinherited |
References IPL_DEPTH_32F.
|
inlineinherited |
References IPL_DEPTH_64F.
|
inlineinherited |
References IplImage::height, and cv::WImage< T >::image_.
Referenced by cv::WImageBuffer< T >::CloneFrom(), and cv::WImageBufferC< T, C >::CloneFrom().
|
inlineinherited |
References cv::WImage< T >::image_, and IplImage::imageData.
|
inlineinherited |
References cv::WImage< T >::image_, and IplImage::imageData.
|
inlineinherited |
References cv::WImage< T >::image_.
Referenced by cv::WImage< T >::CopyFrom(), cv::WImageC< T, C >::CopyFrom(), cv::WImageView< T >::operator=(), cv::WImageViewC< T, C >::operator=(), cv::WImageView< T >::WImageView(), and cv::WImageViewC< T, C >::WImageViewC().
|
inlineinherited |
References cv::WImage< T >::image_.
|
inlineinherited |
References cv::WImage< T >::Channels(), cv::WImage< T >::image_, IplImage::imageData, and IplImage::widthStep.
|
inlineinherited |
References cv::WImage< T >::Channels(), cv::WImage< T >::image_, IplImage::imageData, and IplImage::widthStep.
|
protected |
|
inlineinherited |
References cv::WImage< T >::Channels(), cv::WImage< T >::ChannelSize(), and cv::WImage< T >::Depth().
|
inlineinherited |
References cv::WImage< T >::image_, IplImage::imageData, and IplImage::widthStep.
|
inlineinherited |
References cv::WImage< T >::image_, IplImage::imageData, and IplImage::widthStep.
|
inlineprotected |
References IplImage::depth, and cv::WImage< T >::SetIpl().
Referenced by cv::WImageBufferC< T, C >::Allocate(), cv::WImageViewC< T, C >::operator=(), cv::WImageBufferC< T, C >::ReleaseImage(), cv::WImageBufferC< T, C >::SetIpl(), and cv::WImageViewC< T, C >::WImageViewC().
|
inlineinherited |
References cvSetZero(), cv::WImage< T >::image_, cv::WImage< T >::operator=(), cv::WImage< T >::View(), and cv::WImage< T >::WImage().
|
inlineinherited |
References cv::WImage< T >::image_, and IplImage::width.
Referenced by cv::WImageBuffer< T >::CloneFrom(), and cv::WImageBufferC< T, C >::CloneFrom().
|
inlineinherited |
References cv::WImage< T >::image_, and IplImage::widthStep.
|
protectedinherited |
Referenced by cv::WImage< T >::Channels(), cv::WImage< T >::CopyFrom(), cv::WImage< T >::Height(), cv::WImage< T >::ImageData(), cv::WImage< T >::Ipl(), cv::WImage< T >::operator()(), cv::WImage< T >::Row(), cv::WImage< T >::SetIpl(), cv::WImage< T >::SetZero(), cv::WImage< T >::Width(), and cv::WImage< T >::WidthStep().