I’ve seen a function MapperGradEuclid and I’d like to see if it is useful, but, despite it being in the docs I can’t seem to access it from python.
I’ve seen some StackOverflow questions, none very recent, where people have used it as cv2.reg_MapperGradEuclid
.
Also I searched through the source code (from GitHub) and found no mention of it.
How to use this from Python?
Thanks
1 Like
that’s a contrib module. if you installed opencv-python
, that won’t contain it. you need opencv-contrib-python
(AND NOT opencv-contrib, uninstall it) to have that module.
1 Like
Thanks! Apologies, I should have figured that out for myself. Is there a way to tell in the documentation what is a contrib module?
the docs top level page calls them “Extra modules”, vs. “Main modules”.
the build process (cmake) has a variable where you can present an “extra” module path (or multiple such paths, I’m not sure). “contrib” is the companion repo, next to the opencv repo itself. conceivably, someone could make their own modules and get those included in the build process.
1 Like