Changeset 214 in flair-src for trunk/demos/Sinus/src/MeanFilter.cpp
- Timestamp:
- Feb 7, 2018, 5:49:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/Sinus/src/MeanFilter.cpp
r157 r214 13 13 14 14 #include "MeanFilter.h" 15 #include < cvmatrix.h>15 #include <Matrix.h> 16 16 #include <LayoutPosition.h> 17 17 #include <GroupBox.h> … … 42 42 desc->SetElementName(0, 0, 43 43 "mean filter"); // name will be used for graphs and logs 44 output = new cvmatrix(this, desc, floatType, name);44 output = new Matrix(this, desc, floatType, name); 45 45 delete desc; 46 46 … … 52 52 MeanFilter::~MeanFilter() {} 53 53 54 cvmatrix *MeanFilter::GetMatrix() const { return output; }54 Matrix *MeanFilter::GetMatrix() const { return output; } 55 55 56 56 float MeanFilter::GetValue(void) const { return output->Value(0, 0); } … … 64 64 65 65 float result = 0; 66 // get input argument in a cvmatrix 67 cvmatrix *input = (cvmatrix *)data; 66 // get input argument in a matrix 67 const Matrix* input = dynamic_cast<const Matrix*>(data); 68 69 if (!input) { 70 Warn("casting %s to Matrix failed\n",data->ObjectName().c_str()); 71 return; 72 } 68 73 69 74 // simple (and not efficent!) implementation of the filter
Note:
See TracChangeset
for help on using the changeset viewer.