aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYinhang Liu <yinhangx.liu@intel.com>2017-11-16 13:55:29 +0800
committerwindyuan <feng.yuan@intel.com>2017-11-16 17:48:46 +0800
commitfced2cd754bfe1b69b8b6ad37cbcd6cab63733de (patch)
tree80934639a1a048f7571d24df75feeac3c1723366
parentcc03b1cbc43f0918fd131aad9a0c6dd475aa58ab (diff)
downloadlibxcam-fced2cd754bfe1b69b8b6ad37cbcd6cab63733de.tar.gz
fisheye-dewarp: fix non-virtual destructor error
-rw-r--r--xcore/surview_fisheye_dewarp.cpp3
-rw-r--r--xcore/surview_fisheye_dewarp.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/xcore/surview_fisheye_dewarp.cpp b/xcore/surview_fisheye_dewarp.cpp
index e9ce2c3..7626a00 100644
--- a/xcore/surview_fisheye_dewarp.cpp
+++ b/xcore/surview_fisheye_dewarp.cpp
@@ -25,6 +25,9 @@ namespace XCam {
SurViewFisheyeDewarp::SurViewFisheyeDewarp ()
{
}
+SurViewFisheyeDewarp::~SurViewFisheyeDewarp ()
+{
+}
PolyFisheyeDewarp::PolyFisheyeDewarp()
: SurViewFisheyeDewarp()
diff --git a/xcore/surview_fisheye_dewarp.h b/xcore/surview_fisheye_dewarp.h
index 042dc3e..5c55a7d 100644
--- a/xcore/surview_fisheye_dewarp.h
+++ b/xcore/surview_fisheye_dewarp.h
@@ -40,6 +40,7 @@ public:
typedef std::vector<float> MapTable;
explicit SurViewFisheyeDewarp ();
+ virtual ~SurViewFisheyeDewarp ();
void fisheye_dewarp(MapTable &map_table, uint32_t table_w, uint32_t table_h, uint32_t image_w, uint32_t image_h, const BowlDataConfig &bowl_config);
@@ -71,6 +72,7 @@ class PolyFisheyeDewarp : public SurViewFisheyeDewarp
public:
explicit PolyFisheyeDewarp ();
+private:
void cal_image_coord(MapTable cam_coord, MapTable &image_coord);
};