template class cv::WImageView
View into an image class which allows treating a subimage as an image or treating external data as an image
#include <wimage.hpp> template <typename T> class WImageView: public cv::WImage { public: // typedefs typedef WImage<T>::BaseType BaseType; // construction WImageView( WImage<T>* img, int c, int r, int width, int height ); WImageView( T* data, int width, int height, int channels, int width_step = -1 ); WImageView(IplImage* img); WImageView(const WImage<T>& img); // methods WImageView& operator=(const WImage<T>& img); protected: // fields IplImage header_; };
Inherited Members
public: // typedefs typedef T BaseType; // methods int Channels() const; int ChannelSize() const; void CopyFrom(const WImage<T>& src); int Depth() const; int Depth() const; int Depth() const; int Depth() const; int Depth() const; int Depth() const; int Depth() const; 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(); WImageView<T> View( int c, int r, int width, int height ); int Width() const; int WidthStep() const; protected: // fields IplImage* image_; // methods void operator=(const WImage&); void SetIpl(IplImage* image);