move aruco from contrib to objdetect in main repository#22368
move aruco from contrib to objdetect in main repository#22368asmorkalov merged 22 commits intoopencv:4.xfrom
Conversation
7cb6d47 to
f378cee
Compare
modules/objdetect/include/opencv2/objdetect/aruco_calib_pose.hpp
Outdated
Show resolved
Hide resolved
8f00a1b to
75edd43
Compare
2fedf4d to
3752927
Compare
04388eb to
d3a9169
Compare
d3a9169 to
c57fa3d
Compare
ddbfca8 to
21bd0df
Compare
|
|
||
| /** @brief get rightBottomBorder | ||
| */ | ||
| CV_WRAP const Point3f& getRightBottomBorder() const; |
There was a problem hiding this comment.
M.b getRightBottomCorner?
There was a problem hiding this comment.
rename getRightBottomBorder to getRightBottomCorner
modules/objdetect/include/opencv2/objdetect/aruco_dictionary.hpp
Outdated
Show resolved
Hide resolved
vpisarev
left a comment
There was a problem hiding this comment.
except for a few questionable CV_EXPORTS_AS(...), I'm fine with the pull request
|
@alalek could you take a look on the patch, at least on public API design? |
93f4598 to
035c7b9
Compare
8fbd76d to
b2fef4f
Compare
b2fef4f to
fd0c02d
Compare
92868e1 to
68aca5c
Compare
25d2493 to
ba67ad4
Compare
| public class ArucoTest extends OpenCVTestCase { | ||
|
|
||
| public void testGenerateBoards() { | ||
| Dictionary dictionary = Objdetect.getPredefinedDictionary(Objdetect.DICT_4X4_50); | ||
|
|
||
| Mat point1 = new Mat(4, 3, CvType.CV_32FC1); | ||
| int row = 0, col = 0; |
There was a problem hiding this comment.
something wrong with indentation
There was a problem hiding this comment.
fixed indentation
| * - DICT_ARUCO_ORIGINAL: standard ArUco Library Markers. 1024 markers, 5x5 bits, 0 minimum | ||
| distance | ||
| */ | ||
| enum PREDEFINED_DICTIONARY_NAME { |
|
|
||
| /** @brief get rightBottomBorder | ||
| */ | ||
| CV_WRAP const Point3f& getRightBottomBorder() const; |
| // of the authors and should not be interpreted as representing official policies, | ||
| // either expressed or implied, of the Regents of The University of Michigan. | ||
|
|
||
| #include <opencv2/core.hpp> |
There was a problem hiding this comment.
Wrong precomp.hpp usage.
All files of opencv modules must follow these rules:
- .cpp file: one and only one (1) usage of precomp.hpp include on the first place (2).
- .hpp file: can't use precomp.hpp at all
There was a problem hiding this comment.
fixed, sorry part of cpp previously missed
There was a problem hiding this comment.
precomp.hpp was added to all objdetect/aruco cpp files and removed from all objdetect/aruco hpp files
|
|
||
| template<typename T> | ||
| inline bool readWriteParameter(const std::string& name, T& parameter, const Ptr<FileNode> readNode = nullptr, | ||
| const Ptr<FileStorage> writeStorage = nullptr) { |
There was a problem hiding this comment.
Ptr<FileStorage>
we don't need Ptr in internal calls.
Use reference / const reference instead.
There was a problem hiding this comment.
removed Ptr from readWriteParameter
|
It looks like I fixed it. If it's not, sorry @alalek, it's easy to get lost here. |
| if(_in.type() == CV_8UC3) | ||
| cvtColor(_in, _out, COLOR_BGR2GRAY); | ||
| else | ||
| _in.copyTo(_out); |
There was a problem hiding this comment.
Why is a copy still performed if the image is already grey? A Copy operation seems to be expensive performance wise
|
can you imagine, what kind words people say to you, when you change how to use aruco markers without clear documentation? |
| CV_WRAP static Mat getByteListFromBits(const Mat &bits); | ||
|
|
||
|
|
||
| /** @brief Transform list of bytes to matrix of bits | ||
| */ | ||
| CV_WRAP static Mat getBitsFromByteList(const Mat &byteList, int markerSize); |
There was a problem hiding this comment.
Must be InputArray as it is public API.
Megre together with opencv/opencv_contrib#3325
1.1 add virtual Board::draw(), virtual ~Board()
1.2 move
testCharucoCornersCollinearto Board classes (and rename tocheckCharucoCornersCollinear)1.3 add wrappers to keep the old api working
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.