dip_opencv namespace
The dip_opencv namespace contains the interface between OpenCV 2 (or later) and DIPlib.
Classes
- class ExternalInterface
- This class is the
dip::ExternalInterfacefor the OpenCV interface. more...
Functions
- auto CopyDipToMat(dip::Image const& img) -> cv::Mat
- Creates an OpenCV
cv::Matobject from a DIPlib image by copy. more... - auto DipToMat(dip::Image const& img) -> cv::Mat
- Creates an OpenCV
cv::Matobject around a DIPlib image, without taking ownership of the data. more... - void FixBinaryImageForDip(dip::Image& img)
- Fixes the binary image
imgto match expectations of DIPlib (i.e. only the bottom bit is used). more... - void FixBinaryImageForOpenCv(dip::Image& img)
- Fixes the binary image
imgto match expectations of OpenCV (i.e. all bits have the same value). more... - auto 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. more...