Changeset 148 in flair-src for trunk/lib/FlairCore/src
- Timestamp:
- Feb 28, 2017, 4:18:13 PM (8 years ago)
- Location:
- trunk/lib/FlairCore/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/cvmatrix.h
r147 r148 59 59 * 60 60 * \param parent parent 61 * \param descriptor matrix description 61 * \param descriptor matrix description, it is safe to destroy it after calling this constructor 62 62 * \param type type of matrix elements 63 63 * \param name name -
trunk/lib/FlairCore/src/cvmatrix_impl.cpp
r15 r148 33 33 34 34 cvmatrix_impl::cvmatrix_impl(cvmatrix *self, 35 const cvmatrix_descriptor * descriptor,35 const cvmatrix_descriptor *inDescriptor, 36 36 flair::core::ScalarType const &_elementDataType, 37 37 int n) 38 38 : elementDataType(_elementDataType) { 39 this->descriptor = descriptor; 39 descriptor = new cvmatrix_descriptor(inDescriptor->Rows(), inDescriptor->Cols()); 40 41 for (uint32_t i = 0; i < descriptor->Rows(); i++) { 42 for (uint32_t j = 0; j < descriptor->Cols(); j++) { 43 descriptor->SetElementName(i, j, inDescriptor->ElementName(i, j)); 44 } 45 } 40 46 Init(self, n); 41 47 } -
trunk/lib/FlairCore/src/unexported/cvmatrix_impl.h
r15 r148 34 34 CvMat *mat; 35 35 flair::core::ScalarType const &elementDataType; 36 // const since if element description is modified it would be a mess in the 37 // log 38 const flair::core::cvmatrix_descriptor *descriptor; 36 flair::core::cvmatrix_descriptor *descriptor; 39 37 40 38 private:
Note:
See TracChangeset
for help on using the changeset viewer.