-
Notifications
You must be signed in to change notification settings - Fork 39
tracker complete #97
New issue
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
base: master
Are you sure you want to change the base?
tracker complete #97
Conversation
samples/tracking_demo.cpp
Outdated
|
||
|
||
|
||
Rect_<int> roi; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheG1uy, надо избавиться от глобальных переменных.
samples/tracking_demo.cpp
Outdated
Rect_<int> roi; | ||
void CallBackFunc(int event, int x, int y, int flags, void* userdata) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheG1uy, почистите код от лишних пустых строчек.
position_ = next_position; | ||
frame_ = gray_frame; | ||
|
||
return next_position; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheG1uy, этот метод логично разбить на несколько скрытых методов, поскольку она слишком большая по размеру.
src/tracking.cpp
Outdated
return nullptr; | ||
} | ||
|
||
double medianFunc(std::vector<double> vec) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheG1uy, по сути это должен быть скрытый метод класса, а не функция.
Возможно, с функцией delElements я слегка перестарался... |
It was hard....