![]() |
Image Component Library (ICL)
|
Utility class that wraps around a CvMat of type CV_32FC1. More...
#include <OpenCV.h>
Public Member Functions | |
| CvMatWrapper (int nrows=0, int ncols=0) | |
| Constructor, creates a CvMat with given dimensions. More... | |
| CvMatWrapper (const utils::Size &size) | |
| CvMatWrapper (CvMat *other, bool takeOwnerShip=false) | |
| Constructor with given source matrix (wrappes around that) More... | |
| CvMat * | get () |
| returns the current wrapped CvMat pointer More... | |
| const CvMat * | get () const |
| returns the current wrapped CvMat pointer (const) More... | |
| void | operator= (const Img< T > &image) |
| assigns given image (channel 0 only) More... | |
| void | setSize (const utils::Size &size) |
| adapts the size (if necessary) More... | |
| bool | isNull () const |
| returns whether a non-null pointer is wrapped More... | |
| const utils::Size & | getSize () const |
| returns the current size More... | |
| T & | operator() (int y, int x) |
| index operator More... | |
| const T & | operator() (int y, int x) const |
| index operator (const) More... | |
Private Attributes | |
| utils::Size | size |
| current size More... | |
| utils::SmartPtrBase< CvMat, CvMatDelOp > | m |
Additional Inherited Members | |
Protected Member Functions inherited from icl::utils::Uncopyable | |
| Uncopyable () | |
| Empty base constructor. More... | |
Utility class that wraps around a CvMat of type CV_32FC1.
The wrapper simply handles construction, x/y- indexing and deletion of the internally used CvMat pointer in its destructor.
|
inline |
Constructor, creates a CvMat with given dimensions.
|
inline |
|
inline |
Constructor with given source matrix (wrappes around that)
Optionally, ownership is taken!
|
inline |
returns the current wrapped CvMat pointer
|
inline |
returns the current wrapped CvMat pointer (const)
|
inline |
returns the current size
|
inline |
returns whether a non-null pointer is wrapped
|
inline |
index operator
|
inline |
index operator (const)
|
inline |
assigns given image (channel 0 only)
|
inline |
adapts the size (if necessary)
If the size is adapted, the newly created instace's ownership is taken over
|
private |
|
private |
current size
1.8.15