|
|
|
@ -64,6 +64,12 @@ public:
|
|
|
|
static int cutSmallImg(cv::Mat img, std::vector<cv::Rect> &samllRoiList, cv::Rect config_roi, int config_SmallImg_Width, int config_SmallImg_Height, int config_MinOverlap_Width, int config_MinOverlap_Height);
|
|
|
|
static int cutSmallImg(cv::Mat img, std::vector<cv::Rect> &samllRoiList, cv::Rect config_roi, int config_SmallImg_Width, int config_SmallImg_Height, int config_MinOverlap_Width, int config_MinOverlap_Height);
|
|
|
|
static cv::Point2f transformPoint(const cv::Point2f &point, const cv::Mat &transform_matrix);
|
|
|
|
static cv::Point2f transformPoint(const cv::Point2f &point, const cv::Mat &transform_matrix);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// 无参数重载:直接返回原字符串,避免 -Wformat-security 警告
|
|
|
|
|
|
|
|
static inline std::string str_Format(const std::string &format)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return format;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
template <typename... Args>
|
|
|
|
template <typename... Args>
|
|
|
|
static std::string str_Format(const std::string &format, Args... args)
|
|
|
|
static std::string str_Format(const std::string &format, Args... args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|