for one, the assertion says what it expects:
And there’s some documentation that you follow up the inheritance until you find your process()
method:
- OpenCV: cv::TonemapReinhard Class Reference
- OpenCV: cv::Tonemap Class Reference
- OpenCV: cv::Tonemap Class Reference
that’s the same. OpenCV adapts between cv::Mat and numpy array. there is no “Mat” in the python bindings. this is a fundamental aspect of how OpenCV works when used from Python.