diff --git a/modules/core/doc/basic_structures.rst b/modules/core/doc/basic_structures.rst index 048ee7e71a..db4e015b94 100644 --- a/modules/core/doc/basic_structures.rst +++ b/modules/core/doc/basic_structures.rst @@ -285,7 +285,7 @@ In addition to the class members, the following operations on rectangles are imp * ``rect = rect1 & rect2`` (rectangle intersection) -* ``rect = rect1 | rect2`` (minimum area rectangle containing ``rect2`` and ``rect3`` ) +* ``rect = rect1 | rect2`` (minimum area rectangle containing ``rect1`` and ``rect2`` ) * ``rect &= rect1, rect |= rect1`` (and the corresponding augmenting operations) diff --git a/modules/core/include/opencv2/core/types.hpp b/modules/core/include/opencv2/core/types.hpp index 2ea9f0d7a7..e166556af7 100644 --- a/modules/core/include/opencv2/core/types.hpp +++ b/modules/core/include/opencv2/core/types.hpp @@ -356,7 +356,7 @@ In addition to the class members, the following operations on rectangles are imp certain amount) - rect += point, rect -= point, rect += size, rect -= size (augmenting operations) - rect = rect1 & rect2 (rectangle intersection) -- rect = rect1 | rect2 (minimum area rectangle containing rect2 and rect3 ) +- rect = rect1 | rect2 (minimum area rectangle containing rect1 and rect2 ) - rect &= rect1, rect |= rect1 (and the corresponding augmenting operations) - rect == rect1, rect != rect1 (rectangle comparison)