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