Browse Source

Fixed compilation without RGBD module.

pull/703/head
Canming Huang 4 years ago
parent
commit
2d4cf5ccd4
  1. 20
      Emgu.CV.Extern/rgbd/rgbd_c.cpp
  2. 7
      Emgu.CV.Extern/rgbd/rgbd_c.h

20
Emgu.CV.Extern/rgbd/rgbd_c.cpp

@ -257,3 +257,23 @@ void cveLinemodMatchRelease(cv::linemod::Match** match)
#endif
}
cv::linemod::Modality* cveLinemodModalityCreate(cv::String* modalityType, cv::Ptr<cv::linemod::Modality>** sharedPtr)
{
#ifdef HAVE_OPENCV_RGBD
//TODO: Implement this.
#else
throw_no_rgbd();
#endif
}
void cveLinemodModalityRelease(cv::Ptr<cv::linemod::Modality>** sharedPtr)
{
#ifdef HAVE_OPENCV_RGBD
delete* sharedPtr;
*sharedPtr = 0;
#else
throw_no_rgbd();
#endif
}

7
Emgu.CV.Extern/rgbd/rgbd_c.h

@ -21,6 +21,13 @@ namespace cv
class Odometry {};
class RgbdNormals {};
}
namespace linemod
{
class Detector {};
class Modality {};
struct Match {};
}
}
#endif

Loading…
Cancel
Save