Skip to content

Commit

Permalink
troubleshooting crash
Browse files Browse the repository at this point in the history
checking if the Scalar should be 255
  • Loading branch information
hn-88 authored Dec 15, 2023
1 parent d10227a commit 4741188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pan2fulldome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ cv::Mat equirectToFisheye(cv::Mat inputMat, int sky_threshold, int horizontal_ex
// first create and initialize a mask, needs to be 8 bit 1 channel
cv::Mat mask(dstsize, CV_8UC1, cv::Scalar(0));
// todo calculate the correct polynomial vertices
std::vector<cv::Point> 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));
std::vector<cv::Point> my_poly = {cv::Point(15, 10), cv::Point(30, 15), cv::Point(30, 70), cv::Point(15, 30)};
cv::fillPoly(mask, my_poly, cv::Scalar::all(255));
cv::inpaint(dst, mask, dst, 3, cv::INPAINT_TELEA);
return dst;
}
Expand Down

0 comments on commit 4741188

Please sign in to comment.