Skip to content

(4.x) Merge 3.4#21690

Merged
alalek merged 7 commits intoopencv:4.xfrom
alalek:merge-3.4
Mar 5, 2022
Merged

(4.x) Merge 3.4#21690
alalek merged 7 commits intoopencv:4.xfrom
alalek:merge-3.4

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Mar 5, 2022

#21488 from VadimLevin:dev/vlevin/scope-for-classes
#21542 from rogday:split_expand
#21646 from zchrissirhcz:seamless_cloning-remove-const

Previous "Merge 3.4": #21643

zchrissirhcz and others added 7 commits February 21, 2022 20:39
All classes are registered in the scope that corresponds to C++
namespace or exported class.

Example:
`cv::ml::Boost` is exported as `cv.ml.Boost`
`cv::SimpleBlobDetector::Params` is exported as
`cv.SimpleBlobDetector.Params`

For backward compatibility all classes are registered in the global
module with their mangling name containing scope information.
Example:
`cv::ml::Boost` has `cv.ml_Boost` alias to `cv.ml.Boost` type
msg="Classes from submodules and global module don't refer "
"to the same type")

def test_class_from_submodule_has_global_alias(self):
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VadimLevin This test is ported from 3.4 to 4.x branch

@alalek
Copy link
Copy Markdown
Member Author

alalek commented Mar 5, 2022

👍

@alalek alalek merged commit 901e0dd into opencv:4.x Mar 5, 2022
@alalek alalek mentioned this pull request Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants