37 Type(
size_t _nbRows,
size_t _nbCols,
ScalarType const &_elementDataType)
38 : nbRows(_nbRows), nbCols(_nbCols), elementDataType(_elementDataType) {}
39 size_t GetSize()
const {
40 return nbRows * nbCols * elementDataType.GetSize();
42 std::string GetDescription()
const {
return "matrix"; }
43 size_t GetNbRows()
const {
return nbRows; }
44 size_t GetNbCols()
const {
return nbCols; }
45 ScalarType const &GetElementDataType()
const {
return elementDataType; }
48 size_t nbRows, nbCols;
67 ScalarType const &elementDataType, std::string name =
"",
85 ScalarType const &elementDataType, std::string name =
"",
104 float Value(uint32_t row, uint32_t col)
const;
130 void SetValue(uint32_t row, uint32_t col,
float value);
163 std::string
Name(uint32_t row, uint32_t col)
const;
195 uint32_t
Rows(
void)
const;
202 uint32_t
Cols(
void)
const;
204 Type const &GetDataType()
const {
return dataType; };
215 void CopyDatas(
char *dst)
const;
217 class cvmatrix_impl *pimpl_;
Abstract class for data types.
Definition: io_data.h:94
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
Class defining a matrix of kind CvMat.
Definition: cvmatrix.h:33
Abstract class for data types.
Class describing cvmatrix elements, for log and graphs purpose.
Definition: cvmatrix_descriptor.h:28
float ValueNoMutex(uint32_t row, uint32_t col) const
Element value.
void SetValueNoMutex(uint32_t row, uint32_t col, float value)
Set element value.
void SetValue(uint32_t row, uint32_t col, float value)
Set element value.
uint32_t Rows(void) const
Number of rows.
Abstract class for accessing an element of an io_data.
cvmatrix(const Object *parent, const cvmatrix_descriptor *descriptor, ScalarType const &elementDataType, std::string name="", uint32_t n=1)
Constructor.
Definition: cvmatrix.h:35
Class describing cvmatrix elements, for log and graphs purpose.
std::string Name(uint32_t row, uint32_t col) const
Element name.
Abstract class for accessing an element of an io_data.
Definition: IODataElement.h:27
IODataElement * Element(uint32_t row, uint32_t col) const
Element.
uint32_t Cols(void) const
Number of colomns.
CvMat * getCvMat(void) const
get CvMat
float Value(uint32_t row, uint32_t col) const
Element value.