Ask Your Question

Revision history [back]

It looks like a bug. I recommend you to create issue on OpenCV bug tracker. OpenCV is open source project and you can contribute your solution via pull request on Github.