This is actually something I did last summer and forgot about. But it's very useful, so I dusted it off and updated it in the new world of oiiotool.
The intent of all this is to let applications that use OpenCV freely use OpenImageIO as well, with easy conversion and handoff between the packages. Currently, this consists of: * Basic conversion if IplImage (used by OpenCV and Intel's Image Library) to ImageBuf. And a stub for the other direction, but not yet implemented. * ImageBufAlgo::capture_image will capture an image from a webcam or other device, using OpenCV underneath. * oiiotool --capture grabs a frame, which can subsequently be processed in all the usual oiiotool ways. The compile-time detection of OpenCV is automatic, and if not found by CMake, the above functionality will not be built. You can merge this Pull Request by running: git pull https://github.com/lgritz/oiio lg-opencv Or you can view, comment on it, or merge it online at: https://github.com/OpenImageIO/oiio/pull/248 -- Commit Summary -- * OpenCV interoperability utilities, ImageBufAlgo::capture_image, and oiitool --capture -- File Changes -- M src/CMakeLists.txt (1) M src/cmake/externalpackages.cmake (43) M src/include/imagebuf.h (37) M src/include/imagebufalgo.h (33) M src/libOpenImageIO/CMakeLists.txt (10) A src/libOpenImageIO/imagebufalgo_opencv.cpp (199) M src/oiiotool/oiiotool.cpp (21) -- Patch Links -- https://github.com/OpenImageIO/oiio/pull/248.patch https://github.com/OpenImageIO/oiio/pull/248.diff --- Reply to this email directly or view it on GitHub: https://github.com/OpenImageIO/oiio/pull/248 _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
