Changeset 214 in flair-src for trunk/lib/FlairFilter/src/ButterworthLowPass_impl.cpp
- Timestamp:
- 02/07/18 17:49:27 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/ButterworthLowPass_impl.cpp
r165 r214 18 18 #include "ButterworthLowPass_impl.h" 19 19 #include "ButterworthLowPass.h" 20 #include < cvmatrix.h>20 #include <Matrix.h> 21 21 #include <Layout.h> 22 22 #include <GroupBox.h> … … 29 29 using namespace flair::filter; 30 30 31 ButterworthLowPass_impl::ButterworthLowPass_impl( ButterworthLowPass *self,31 ButterworthLowPass_impl::ButterworthLowPass_impl(const ButterworthLowPass *self, 32 32 const LayoutPosition *position, 33 33 string name, uint32_t order,uint32_t nbRow,uint32_t nbCol) { … … 41 41 cvmatrix_descriptor *desc = new cvmatrix_descriptor(nbRow, nbCol); 42 42 //desc->SetElementName(0, 0, "output"); 43 output = new cvmatrix(self, desc, floatType, name);43 output = new Matrix(self, desc, floatType, name); 44 44 delete desc; 45 45 … … 60 60 this->nbRow=nbRow; 61 61 this->nbCol=nbCol; 62 this->self=self; 62 63 } 63 64 … … 72 73 73 74 void ButterworthLowPass_impl::UpdateFrom(const io_data *data) { 74 cvmatrix *input = (cvmatrix *)data;75 75 float delta_t; 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 if (T->ValueChanged() && T->Value() != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.