31 #include <VisionX/interface/components/OpenCVImageStabilizerInterface.h>
33 #include <Image/IplImageAdaptor.h>
35 #include <opencv2/opencv.hpp>
56 defineOptionalProperty<float>(
"Framerate", 30.0,
"the framerate");
57 defineOptionalProperty<std::string>(
"providerName",
"Armar3WideImageProvider",
"ImageProvider name");
58 defineOptionalProperty<bool>(
"drawFeatures",
false,
"Draw the detected features");
75 virtual public OpenCVImageStabilizerInterface
83 return "OpenCVImageStabilizer";
100 visionx::ImageProviderInterfacePrx imageProviderPrx;
101 CByteImage** cameraImages;
103 cv::Mat prev, prevGrey, prevTransform;
104 std::vector< cv::Point2f > prevFeatures;
105 std::vector< cv::Vec3d > deltaTransformations, smoothedTrajectory;
106 std::queue< cv::Mat > oldImages;
108 std::mutex imageMutex;
110 std::string providerName;