Changeset 214 in flair-src for trunk/lib/FlairFilter/src/EulerDerivative_impl.cpp
- Timestamp:
- 02/07/18 17:49:27 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/EulerDerivative_impl.cpp
r148 r214 18 18 #include "EulerDerivative.h" 19 19 #include "EulerDerivative_impl.h" 20 #include < cvmatrix.h>20 #include <Matrix.h> 21 21 #include <Layout.h> 22 22 #include <GroupBox.h> … … 31 31 const LayoutPosition *position, 32 32 string name, 33 const cvmatrix *init_value) {33 const Matrix *init_value) { 34 34 first_update = true; 35 this->self = self; 35 36 36 37 if (init_value != NULL) { … … 43 44 } 44 45 } 45 output = new cvmatrix(self, desc,init_value->GetDataType().GetElementDataType(), name);46 output = new Matrix(self, desc,init_value->GetDataType().GetElementDataType(), name); 46 47 delete desc; 47 48 for (int i = 0; i < init_value->Rows(); i++) { … … 54 55 cvmatrix_descriptor *desc = new cvmatrix_descriptor(1, 1); 55 56 desc->SetElementName(0, 0, "output"); 56 output = new cvmatrix(self, desc, floatType, name);57 output = new Matrix(self, desc, floatType, name); 57 58 delete desc; 58 59 } … … 60 61 61 62 cvmatrix_descriptor *desc = new cvmatrix_descriptor(output->Rows(), output->Cols()); 62 prev_value = new cvmatrix(self, desc, output->GetDataType().GetElementDataType(), name);63 prev_value = new Matrix(self, desc, output->GetDataType().GetElementDataType(), name); 63 64 64 65 … … 73 74 void EulerDerivative_impl::UpdateFrom(const io_data *data) { 74 75 float delta_t; 75 cvmatrix *input = (cvmatrix *)data; 76 const Matrix* input = dynamic_cast<const Matrix*>(data); 77 78 if (!input) { 79 self->Warn("casting %s to Matrix failed\n",data->ObjectName().c_str()); 80 return; 81 } 76 82 77 83 // on prend une fois pour toute les mutex et on fait des accès directs
Note:
See TracChangeset
for help on using the changeset viewer.