Changeset 214 in flair-src for trunk/lib/FlairFilter/src/LowPassFilter_impl.cpp
- Timestamp:
- 02/07/18 17:49:27 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/LowPassFilter_impl.cpp
r148 r214 18 18 #include "LowPassFilter_impl.h" 19 19 #include "LowPassFilter.h" 20 #include < cvmatrix.h>20 #include <Matrix.h> 21 21 #include <Layout.h> 22 22 #include <GroupBox.h> 23 23 #include <SpinBox.h> 24 24 #include <DoubleSpinBox.h> 25 25 #include <typeinfo> 26 26 #define PI ((float)3.14159265358979323846) 27 27 … … 34 34 const LayoutPosition *position, 35 35 string name, 36 const cvmatrix *init_value) {36 const Matrix *init_value) { 37 37 38 38 if (init_value != NULL) { … … 45 45 } 46 46 } 47 output = new cvmatrix(self, desc,init_value->GetDataType().GetElementDataType(), name);47 output = new Matrix(self, desc,init_value->GetDataType().GetElementDataType(), name); 48 48 for (int i = 0; i < init_value->Rows(); i++) { 49 49 for (int j = 0; j < init_value->Cols(); j++) { … … 56 56 cvmatrix_descriptor *desc = new cvmatrix_descriptor(1, 1); 57 57 desc->SetElementName(0, 0, "output"); 58 output = new cvmatrix(self, desc, floatType, name);58 output = new Matrix(self, desc, floatType, name); 59 59 delete desc; 60 60 } … … 68 68 69 69 previous_time=GetTime(); 70 this->self = self; 70 71 } 71 72 … … 74 75 void LowPassFilter_impl::UpdateFrom(const io_data *data) { 75 76 float delta_t; 76 cvmatrix *input = (cvmatrix *)data; 77 const Matrix* input = dynamic_cast<const Matrix*>(data); 78 79 if (!input) { 80 self->Warn("casting %s to Matrix failed\n",data->ObjectName().c_str()); 81 return; 82 } 77 83 78 84 // 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.