mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
fixes extendDictionary, add test
This commit is contained in:
committed by
Alexander Smorkalov
parent
91808e64a1
commit
e5ff41ec9b
@@ -318,4 +318,12 @@ TEST(CV_ArucoGenerateBoard, regression_1226) {
|
||||
});
|
||||
}
|
||||
|
||||
TEST(CV_ArucoDictionary, extendDictionary) {
|
||||
aruco::Dictionary base_dictionary = aruco::getPredefinedDictionary(aruco::DICT_4X4_250);
|
||||
aruco::Dictionary custom_dictionary = aruco::extendDictionary(150, 4, base_dictionary);
|
||||
|
||||
ASSERT_EQ(custom_dictionary.bytesList.rows, 150);
|
||||
ASSERT_EQ(cv::norm(custom_dictionary.bytesList, base_dictionary.bytesList.rowRange(0, 150)), 0.);
|
||||
}
|
||||
|
||||
}} // namespace
|
||||
|
||||
Reference in New Issue
Block a user