dip_opencv_interface.h file
This file defines the dip_opencv
namespace, functionality to interface OpenCV 2 (or later) and DIPlib.
Contents
- Reference
Namespaces
- namespace dip_opencv
- The
dip_opencv
namespace contains the interface between OpenCV 2 (or later) and DIPlib.
Classes
-
class dip_opencv::
ExternalInterface - This class is the
dip::ExternalInterface
for the OpenCV interface.
Functions
-
auto dip_opencv::
MatToDip(cv::Mat const& mat, bool forceUnsigned = false) -> dip::Image - Creates a DIPlib image around an OpenCV
cv::Mat
, without taking ownership of the data. -
auto dip_opencv::
DipToMat(dip::Image const& img) -> cv::Mat - Creates an OpenCV
cv::Mat
object around a DIPlib image, without taking ownership of the data. -
auto dip_opencv::
CopyDipToMat(dip::Image const& img) -> cv::Mat - Creates an OpenCV
cv::Mat
object from a DIPlib image by copy. -
void dip_opencv::
FixBinaryImageForDip(dip::Image& img) - Fixes the binary image
img
to match expectations of DIPlib (i.e. only the bottom bit is used). -
void dip_opencv::
FixBinaryImageForOpenCv(dip::Image& img) - Fixes the binary image
img
to match expectations of OpenCV (i.e. all bits have the same value).