Put header as declaration above the class: "bool isInsidePolygon(cv::Mat mask, cv::Point2d point);".
Put implementation in the cpp file.
Remove static annotation.