From ba02bfc373451ec6e1d6b878f915af9a4137890d Mon Sep 17 00:00:00 2001 From: hn-88 Date: Thu, 14 Dec 2023 20:30:12 +0530 Subject: [PATCH] corrected python syntax to c++ syntax! --- pan2fulldome.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pan2fulldome.cpp b/pan2fulldome.cpp index f614321..3c4b6af 100644 --- a/pan2fulldome.cpp +++ b/pan2fulldome.cpp @@ -238,11 +238,11 @@ cv::Mat equirectToFisheye(cv::Mat inputMat, int sky_threshold, int horizontal_ex // "rotate_down" would determine the angle tilt above or below the horizon // before returning dst, we want to clean up the seam, using inpainting // first create and initialize a mask, needs to be 8 bit 1 channel - cv::Mat mask(dstsize, CV_8UC1, Scalar(0)); + cv::Mat mask(dstsize, CV_8UC1, cv::Scalar(0)); // todo calculate the correct polynomial vertices std::vector my_poly = {cv::Point(150, 100), cv::Point(300, 150), cv::Point(300, 310), cv::Point(150, 300)}; cv::fillPoly(mask, my_poly, cv::Scalar::all(1)); - dst = cv.inpaint(dst,mask,3,cv.INPAINT_TELEA); + dst = cv::inpaint(dst,mask,3,cv::INPAINT_TELEA); return dst; }