00001 /* 00002 * InpaintFilter.hpp 00003 * 00004 * Created on: May 6, 2017 00005 * Author: Tanja Baumann, Peter Fankhauser 00006 * Institute: ETH Zurich, ANYbotics 00007 */ 00008 00009 #pragma once 00010 00011 #include <filters/filter_base.h> 00012 00013 //OpenCV 00014 #include "grid_map_cv/grid_map_cv.hpp" 00015 #include <opencv2/opencv.hpp> 00016 00017 #include <vector> 00018 #include <string> 00019 00020 namespace grid_map { 00021 00025 template<typename T> 00026 class InpaintFilter : public filters::FilterBase<T> { 00027 00028 public: 00032 InpaintFilter(); 00033 00037 virtual ~InpaintFilter(); 00038 00042 virtual bool configure(); 00043 00051 virtual bool update(const T& mapIn, T& mapOut); 00052 00053 private: 00054 00056 double radius_; 00057 00059 std::string inputLayer_; 00060 00062 std::string outputLayer_; 00063 }; 00064 00065 } /* namespace */