I got a panic from highgui::Window::named() because the value returned from cvNamedWindow() was 1. The documentation for namedWindow does not say anything about the return value and the current (C++) API of the library implements cv::namedWindow() like so:
Wherein it just ignores the value returned by the lower level cvNamedWindow(). I think we should also do the same here. I've attached a patch, but I'm new to Rust and this project, so please let me know if I missed something. Thanks for the project!
[EDIT]
I'm on Linux 64 bit with GTK backend for OpenCV 2.4.3+, if that helps.
I got a panic from
highgui::Window::named()
because the value returned fromcvNamedWindow()
was1
. The documentation for namedWindow does not say anything about the return value and the current (C++) API of the library implementscv::namedWindow()
like so:Wherein it just ignores the value returned by the lower level
cvNamedWindow()
. I think we should also do the same here. I've attached a patch, but I'm new to Rust and this project, so please let me know if I missed something. Thanks for the project![EDIT] I'm on Linux 64 bit with GTK backend for OpenCV 2.4.3+, if that helps.