-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refactor classes #8
Conversation
Add class interface
EDIT testcase. Now we read color image
codestyle fixes
create calc func instead of getkeypoints&getdescriptors delete most of private fields and now them scope is just culc function
create calc func instead of getkeypoints&getdescriptors delete most of private fields and now them scope is just culc function
# Conflicts: # src/feature_lib.cpp
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.
Looks great overall, but descriptors should be represented by a vector<vector<uint8_t>>
because each key point has an assiciated array of uint8_t
s.
Also, from the architectural aspect every class and struct in |
codestyle fixes add getters setters methods refactor constructor method refactor class variables storing now they store in baseclass edit example
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.
- Use
auto
where possible if it doesn't make the code less clear. You can read more about when to useauto
here. - Let's rename
test.cpp
todetection_example.cpp
.
remove setters refactor matto2dvec and renamed it edit codestyle & docstrings remove refactor mask storing
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.
You can still add auto
in a lot of places
edit codestyle
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.
You got the setters wrong again :(
edit setters again edit docstring initialize width and height in header
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.
Other than this small detail, looks good to me
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.
Nice work, but it'd be better to remove relative import in examples
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.
Better move the opencv-contrib
downloading and extracting into a separate block with the same check that the standard opencv
has. Maybe even create a function for it because the same code is used twice.
I did something with commits, and somehow strangely rolled back the changes in BuildOpenCV.cmake |
You did something wrong: you pushed the same commits and two lines related to the |
rolled back changes in BuildOpenCV.cmake |
change mat constructor in conversions.h edit constructor of base class now it use initializer list constructor remove default constructors now child class use initializer list constructor move definitions of base class to .cpp
8084996
to
ded8029
Compare
rewrite history |
wrote some methods to conversions.h
new structure
new conversions method
new base class
refactor calc methods