mirror of
https://github.com/opencv/opencv.git
synced 2026-11-28 20:37:06 -06:00
Merge pull request #23109 from seanm:misc-warnings
* Fixed clang -Wnewline-eof warnings * Fixed all trivial clang -Wextra-semi and -Wc++98-compat-extra-semi warnings * Removed trailing semi from various macros * Fixed various -Wunused-macros warnings * Fixed some trivial -Wdocumentation warnings * Fixed some -Wdocumentation-deprecated-sync warnings * Fixed incorrect indentation * Suppressed some clang warnings in 3rd party code * Fixed QRCodeEncoder::Params documentation. --------- Co-authored-by: Alexander Smorkalov <alexander.smorkalov@xperience.ai>
This commit is contained in:
@@ -67,7 +67,7 @@ inline void mosaic(cv::Mat& mat, const cv::Rect &rect, int cellSz)
|
||||
cell_roi = cv::mean(cell_roi);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
inline void blendImage(const cv::Mat& img,
|
||||
const cv::Mat& alpha,
|
||||
@@ -120,7 +120,7 @@ inline void poly(cv::Mat& mat,
|
||||
{
|
||||
std::vector<std::vector<cv::Point>> points{pp.points};
|
||||
cv::fillPoly(mat, points, pp.color, pp.lt, pp.shift);
|
||||
};
|
||||
}
|
||||
|
||||
struct BGR2YUVConverter
|
||||
{
|
||||
@@ -133,13 +133,13 @@ struct BGR2YUVConverter
|
||||
return {y, u, v};
|
||||
}
|
||||
|
||||
void cvtImg(const cv::Mat& in, cv::Mat& out) { cv::cvtColor(in, out, cv::COLOR_BGR2YUV); };
|
||||
void cvtImg(const cv::Mat& in, cv::Mat& out) { cv::cvtColor(in, out, cv::COLOR_BGR2YUV); }
|
||||
};
|
||||
|
||||
struct EmptyConverter
|
||||
{
|
||||
cv::Scalar cvtColor(const cv::Scalar& bgr) const { return bgr; };
|
||||
void cvtImg(const cv::Mat& in, cv::Mat& out) const { out = in; };
|
||||
cv::Scalar cvtColor(const cv::Scalar& bgr) const { return bgr; }
|
||||
void cvtImg(const cv::Mat& in, cv::Mat& out) const { out = in; }
|
||||
};
|
||||
|
||||
// FIXME util::visitor ?
|
||||
|
||||
Reference in New Issue
Block a user