Skip to content

Commit

Permalink
why does fillpoly crash
Browse files Browse the repository at this point in the history
  • Loading branch information
hn-88 authored Dec 15, 2023
1 parent f0c802a commit ff40f9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pan2fulldome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ cv::Mat equirectToFisheye(cv::Mat inputMat, int sky_threshold, int horizontal_ex
// width 10% of outputw, height 50% of outputw
try {
std::vector<cv::Point> my_poly = {cv::Point(outputw/2 - outputw/20,outputw), cv::Point(outputw/2 + outputw/20,outputw), cv::Point(outputw/2 + outputw/20,outputw/2), cv::Point(outputw/2 - outputw/20,outputw/2)};
//cv::fillPoly(InputOutputArray img, InputArrayOfArrays pts, const Scalar & color)
cv::fillPoly(mask, my_poly, cv::Scalar::all(255));
} catch (...) {
std::cout << "Exception occurred in fillPoly!" << std::endl;
Expand Down

0 comments on commit ff40f9e

Please sign in to comment.