We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FeatureTensor.cpp 113-118行 rc.x -= (rc.height * 0.5 - rc.width) * 0.5; //为什么x坐标这么改? rc.width = rc.height * 0.5; //为什么width要取height的一半? rc.x = (rc.x >= 0 ? rc.x : 0); rc.y = (rc.y >= 0 ? rc.y : 0); rc.width = (rc.x + rc.width <= img.cols ? rc.width : (img.cols - rc.x)); rc.height = (rc.y + rc.height <= img.rows ? rc.height : (img.rows - rc.y));
The text was updated successfully, but these errors were encountered:
对啊,这段代码是什么意思?我实在看不懂
Sorry, something went wrong.
同问
No branches or pull requests
FeatureTensor.cpp 113-118行
rc.x -= (rc.height * 0.5 - rc.width) * 0.5; //为什么x坐标这么改?
rc.width = rc.height * 0.5; //为什么width要取height的一半?
rc.x = (rc.x >= 0 ? rc.x : 0);
rc.y = (rc.y >= 0 ? rc.y : 0);
rc.width = (rc.x + rc.width <= img.cols ? rc.width : (img.cols - rc.x));
rc.height = (rc.y + rc.height <= img.rows ? rc.height : (img.rows - rc.y));
The text was updated successfully, but these errors were encountered: