Changeset 163 in flair-src for trunk/demos
- Timestamp:
- Mar 6, 2017, 10:11:48 PM (8 years ago)
- Location:
- trunk/demos/OpticalFlow/uav/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/OpticalFlow/uav/src/DemoOpticalFlow.cpp
r156 r163 62 62 opticalFlow=new OpticalFlow(greyCameraImage,uav->GetVerticalCamera()->GetLayout()->NewRow(),"flux optique"); 63 63 opticalFlowCompensated=new OpticalFlowCompensated(opticalFlow,uav->GetAhrs(),uav->GetVerticalCamera()->GetLayout()->NewRow(),"flux optique compense"); 64 opticalFlowSpeedRaw=new OpticalFlowSpeed(opticalFlowCompensated, "vitesse du flux optique");64 opticalFlowSpeedRaw=new OpticalFlowSpeed(opticalFlowCompensated,uav->GetAhrs(),uav->GetVerticalCamera()->GetLayout()->NewRow(),"vitesse du Flux Optique"); 65 65 //opticalFlowSpeed=vitesse de déplacement en pixels par seconde (moyenne sur tous les points et division par le delta T) 66 66 cvmatrix* twoByOneOFS=new cvmatrix((const Thread*)this,2,1,floatType); -
trunk/demos/OpticalFlow/uav/src/DemoOpticalFlow.h
r155 r163 56 56 flair::core::cvmatrix *opticalFlowReference; 57 57 flair::filter::Pid *u_x, *u_y; 58 flair::filter::LowPassFilter* opticalFlowSpeed;59 flair::filter::LowPassFilter* opticalFlowAcceleration;60 58 flair::filter::CvtColor* greyCameraImage; 61 59 flair::core::AhrsData *customReferenceOrientation; 60 flair::core::cvmatrix *opticalFlowRealSpeed,*opticalFlowRealAcceleration; 62 61 63 62 private: … … 68 67 flair::gui::PushButton *startOpticalflow,*stopOpticalflow; 69 68 void StartOpticalFlow(void); 70 flair::core::cvmatrix *opticalFlowRealSpeed,*opticalFlowRealAcceleration; 69 flair::filter::LowPassFilter* opticalFlowSpeed; 70 flair::filter::LowPassFilter* opticalFlowAcceleration; 71 71 }; 72 72
Note:
See TracChangeset
for help on using the changeset viewer.